projects
/
project
/
netifd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
move uloop_process_delete call to get rid of an unnecessary check
[project/netifd.git]
/
main.c
diff --git
a/main.c
b/main.c
index
7630a8f
..
cb9fa16
100644
(file)
--- a/
main.c
+++ b/
main.c
@@
-54,8
+54,6
@@
static bool use_syslog = true;
static void
netifd_delete_process(struct netifd_process *proc)
{
static void
netifd_delete_process(struct netifd_process *proc)
{
- if (proc->uloop.pending)
- uloop_process_delete(&proc->uloop);
list_del(&proc->list);
ustream_free(&proc->log.stream);
close(proc->log.fd.fd);
list_del(&proc->list);
ustream_free(&proc->log.stream);
close(proc->log.fd.fd);
@@
-193,6
+191,7
@@
netifd_kill_process(struct netifd_process *proc)
return;
kill(proc->uloop.pid, SIGKILL);
return;
kill(proc->uloop.pid, SIGKILL);
+ uloop_process_delete(&proc->uloop);
netifd_delete_process(proc);
}
netifd_delete_process(proc);
}