summaryrefslogtreecommitdiff
path: root/proto-shell.c
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2014-08-31 14:22:52 +0200
committerFelix Fietkau <nbd@openwrt.org>2014-08-31 14:22:52 +0200
commit64ea160818e2dc958fa91f80a3a5a9ac40ccc3ba (patch)
treea761b7d3a88830ec58ee73368058a6b0019643b4 /proto-shell.c
parentf33922cf7fbd23d56e8aeb591d2841e0856fa164 (diff)
downloadnetifd-64ea160818e2dc958fa91f80a3a5a9ac40ccc3ba.tar.gz
proto-shell: also set proto_task_killed for SIGKILL
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Diffstat (limited to 'proto-shell.c')
-rw-r--r--proto-shell.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/proto-shell.c b/proto-shell.c
index f32a32f..7c23caa 100644
--- 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);
}