fix the fix

This commit is contained in:
Arnaud Le Blanc 2010-11-01 22:40:29 +00:00
parent 61e7730ee8
commit adaa31fff8

View File

@ -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;