diff options
-rw-r--r-- | main.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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); } |