summaryrefslogtreecommitdiff
path: root/accel-pptpd/sigchld.c
diff options
context:
space:
mode:
authorDmitry Kozlov <xeb@mail.ru>2010-09-26 20:25:21 +0400
committerDmitry Kozlov <xeb@mail.ru>2010-09-26 20:25:21 +0400
commitf122327288ae4429bb88a0fefdcef0bf80f54023 (patch)
treeed614bad3d0d1e156e39683da1d30871cad54c94 /accel-pptpd/sigchld.c
parent863e1de3aa67a03bdf2b9720b32eafe6670b29a3 (diff)
downloadaccel-ppp-f122327288ae4429bb88a0fefdcef0bf80f54023.tar.gz
accel-ppp-f122327288ae4429bb88a0fefdcef0bf80f54023.zip
various bug fixed and improvements
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 fd07c0a6..19c76533 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);
}