From 0f5d35a093831b1a54b670fa8d3511103a15004e Mon Sep 17 00:00:00 2001 From: Kozlov Dmitry Date: Fri, 9 Dec 2011 10:18:40 +0400 Subject: pppd_compat: fix potential race condition --- accel-pppd/extra/pppd_compat.c | 1 + 1 file changed, 1 insertion(+) (limited to 'accel-pppd/extra') 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); -- cgit v1.2.3