From: Ulrich Weber Date: Tue, 10 Jun 2014 10:51:06 +0000 (+0000) Subject: proto-shell: set proto_task_killed for SIGTERM only X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=f33922cf7fbd23d56e8aeb591d2841e0856fa164;p=oweals%2Fnetifd.git proto-shell: set proto_task_killed for SIGTERM only otherwise teardown will not kill the process if the interface was renewed before, which set proto_task_killed Signed-off-by: Ulrich Weber --- diff --git a/proto-shell.c b/proto-shell.c index 86dc9ce..f32a32f 100644 --- a/proto-shell.c +++ b/proto-shell.c @@ -578,7 +578,8 @@ proto_shell_kill_command(struct proto_shell_state *state, struct blob_attr **tb) signal = SIGTERM; if (state->proto_task.uloop.pending) { - state->proto_task_killed = true; + if (signal == SIGTERM) + state->proto_task_killed = true; kill(state->proto_task.uloop.pid, signal); }