diff options
author | Kozlov Dmitry <xeb@mail.ru> | 2011-12-09 10:18:40 +0400 |
---|---|---|
committer | Kozlov Dmitry <xeb@mail.ru> | 2011-12-09 10:18:40 +0400 |
commit | 0f5d35a093831b1a54b670fa8d3511103a15004e (patch) | |
tree | 42aeddb54075fca9072af222cae807cca85fb8d9 /accel-pppd | |
parent | d0391e17b4a77f1762c898ff1e434bc13099052e (diff) | |
download | accel-ppp-0f5d35a093831b1a54b670fa8d3511103a15004e.tar.gz accel-ppp-0f5d35a093831b1a54b670fa8d3511103a15004e.zip |
pppd_compat: fix potential race condition
Diffstat (limited to 'accel-pppd')
-rw-r--r-- | accel-pppd/extra/pppd_compat.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/accel-pppd/extra/pppd_compat.c b/accel-pppd/extra/pppd_compat.c index 68d718b..5e17322 100644 --- a/accel-pppd/extra/pppd_compat.c +++ b/accel-pppd/extra/pppd_compat.c @@ -287,6 +287,7 @@ static void ev_ppp_finished(struct ppp_t *ppp) triton_context_schedule(); pthread_mutex_lock(&pd->ip_down_hnd.lock); pthread_mutex_unlock(&pd->ip_down_hnd.lock); + sigchld_unregister_handler(&pd->ip_down_hnd); } else if (pid == 0) { sigset_t set; sigfillset(&set); |