mirror of
https://github.com/php/php-src.git
synced 2025-01-24 12:43:38 +08:00
fix the fix
This commit is contained in:
parent
61e7730ee8
commit
adaa31fff8
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user