From 64ea160818e2dc958fa91f80a3a5a9ac40ccc3ba Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sun, 31 Aug 2014 14:22:52 +0200 Subject: [PATCH] proto-shell: also set proto_task_killed for SIGKILL Signed-off-by: Felix Fietkau --- proto-shell.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- 2.11.0