]> granicus.if.org Git - php/commitdiff
fix the fix
authorArnaud Le Blanc <lbarnaud@php.net>
Mon, 1 Nov 2010 22:40:29 +0000 (22:40 +0000)
committerArnaud Le Blanc <lbarnaud@php.net>
Mon, 1 Nov 2010 22:40:29 +0000 (22:40 +0000)
ext/pcntl/pcntl.c

index de5b99e9b681fd050351adc94d8cfc5a7b12b3bd..9f9f51703372acc7ee0e478ecce5a36f9c7b35af 100755 (executable)
@@ -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;