proto-shell: also set proto_task_killed for SIGKILL
authorFelix Fietkau <nbd@openwrt.org>
Sun, 31 Aug 2014 12:22:52 +0000 (14:22 +0200)
committerFelix 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

index f32a32f..7c23caa 100644 (file)
@@ -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);
        }