summaryrefslogtreecommitdiff
path: root/accel-pptpd/sigchld.c
diff options
context:
space:
mode:
Diffstat (limited to 'accel-pptpd/sigchld.c')
-rw-r--r--accel-pptpd/sigchld.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/accel-pptpd/sigchld.c b/accel-pptpd/sigchld.c
index fd07c0a..19c7653 100644
--- a/accel-pptpd/sigchld.c
+++ b/accel-pptpd/sigchld.c
@@ -64,8 +64,8 @@ static void* sigchld_thread(void *arg)
}
pthread_mutex_unlock(&handlers_lock);
if (h0) {
- h0->handler(h0, WEXITSTATUS(status));
list_del(&h0->entry);
+ h0->handler(h0, WEXITSTATUS(status));
h0->pid = 0;
pthread_mutex_unlock(&h0->lock);
}