Skip to content

Commit

Permalink
fix the fix
Browse files Browse the repository at this point in the history
  • Loading branch information
arnaud-lb committed Nov 1, 2010
1 parent 61e7730 commit adaa31f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ext/pcntl/pcntl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit adaa31f

Please sign in to comment.