X-Git-Url: https://git.archive.openwrt.org/?a=blobdiff_plain;f=proto-shell.c;h=7c23caa47c7837946d70f3a0a81f746d73f56dd9;hb=64ea160818e2dc958fa91f80a3a5a9ac40ccc3ba;hp=f32a32f193a37e02f1e7a9fd1e0d5c0df194f008;hpb=f33922cf7fbd23d56e8aeb591d2841e0856fa164;p=project%2Fnetifd.git 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); }