otherwise teardown will not kill the process if the interface was renewed before, which set proto_task_killed
Signed-off-by: Ulrich Weber <u...@ocedo.com> --- proto-shell.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/proto-shell.c b/proto-shell.c index 574c574..09ce75e 100644 --- a/proto-shell.c +++ b/proto-shell.c @@ -560,7 +560,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); } -- 1.9.1 _______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel