summaryrefslogtreecommitdiffhomepage
path: root/main.c
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2012-10-30 01:12:35 +0100
committerFelix Fietkau <nbd@openwrt.org>2012-10-30 01:22:08 +0100
commit435fe4ecb297420cbe16b677ff09d94309229dbd (patch)
tree01ef1cd828f633c22b3e24b02c4ad8f7ab7631e5 /main.c
parent5eb4f53ce6f1502e16114b51e50ab85ecbc8eb99 (diff)
move uloop_process_delete call to get rid of an unnecessary check
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Diffstat (limited to 'main.c')
-rw-r--r--main.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/main.c b/main.c
index 7630a8f..cb9fa16 100644
--- a/main.c
+++ b/main.c
@@ -54,8 +54,6 @@ static bool use_syslog = true;
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);
@@ -193,6 +191,7 @@ netifd_kill_process(struct netifd_process *proc)
return;
kill(proc->uloop.pid, SIGKILL);
+ uloop_process_delete(&proc->uloop);
netifd_delete_process(proc);
}