lbarnaud                                 Mon, 01 Nov 2010 22:40:29 +0000

Revision: http://svn.php.net/viewvc?view=revision&revision=305019

Log:
fix the fix

Changed paths:
    U   php/php-src/trunk/ext/pcntl/pcntl.c

Modified: php/php-src/trunk/ext/pcntl/pcntl.c
===================================================================
--- php/php-src/trunk/ext/pcntl/pcntl.c 2010-11-01 22:29:25 UTC (rev 305018)
+++ php/php-src/trunk/ext/pcntl/pcntl.c 2010-11-01 22:40:29 UTC (rev 305019)
@@ -1233,8 +1233,10 @@
        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;

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to