svn: /php/php-src/trunk/ext/pcntl/ pcntl.c

From: Date: Mon, 01 Nov 2010 22:40:29 +0000
Subject: svn: /php/php-src/trunk/ext/pcntl/ pcntl.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-63737@lists.php.net to get a copy of this message
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;

« previous php.cvs (#63737) next »