projects
/
project
/
netifd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
proto-shell: set proto_task_killed for SIGTERM only
[project/netifd.git]
/
proto-shell.c
diff --git
a/proto-shell.c
b/proto-shell.c
index
86dc9ce
..
f32a32f
100644
(file)
--- 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);
}