From: Arnaud Le Blanc Date: Mon, 1 Nov 2010 22:40:29 +0000 (+0000) Subject: fix the fix X-Git-Tag: php-5.4.0alpha1~191^2~746 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=adaa31fff830ad48087341aae5bb9d9461f24a1d;p=php fix the fix --- diff --git a/ext/pcntl/pcntl.c b/ext/pcntl/pcntl.c index de5b99e9b6..9f9f517033 100755 --- a/ext/pcntl/pcntl.c +++ b/ext/pcntl/pcntl.c @@ -1233,8 +1233,10 @@ void pcntl_signal_dispatch() sigprocmask(SIG_BLOCK, &mask, &old_mask); /* Bail if the queue is empty or if we are already playing the queue*/ - if (! PCNTL_G(head) || PCNTL_G(processing_signal_queue)) + if (! PCNTL_G(head) || PCNTL_G(processing_signal_queue)) { + sigprocmask(SIG_SETMASK, &old_mask, NULL); return; + } /* Prevent reentrant handler calls */ PCNTL_G(processing_signal_queue) = 1;