projects
/
oweals
/
netifd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f33922c
)
proto-shell: also set proto_task_killed for SIGKILL
author
Felix Fietkau
<nbd@openwrt.org>
Sun, 31 Aug 2014 12:22:52 +0000
(14:22 +0200)
committer
Felix Fietkau
<nbd@openwrt.org>
Sun, 31 Aug 2014 12:22:52 +0000
(14:22 +0200)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
proto-shell.c
patch
|
blob
|
history
diff --git
a/proto-shell.c
b/proto-shell.c
index f32a32f193a37e02f1e7a9fd1e0d5c0df194f008..7c23caa47c7837946d70f3a0a81f746d73f56dd9 100644
(file)
--- a/
proto-shell.c
+++ b/
proto-shell.c
@@
-578,7
+578,7
@@
proto_shell_kill_command(struct proto_shell_state *state, struct blob_attr **tb)
signal = SIGTERM;
if (state->proto_task.uloop.pending) {
- if (signal == SIGTERM)
+ if (signal == SIGTERM
|| signal == SIGKILL
)
state->proto_task_killed = true;
kill(state->proto_task.uloop.pid, signal);
}