Skip to content

Commit adaa31f

Browse files
committed
fix the fix
1 parent 61e7730 commit adaa31f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ext/pcntl/pcntl.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1233,8 +1233,10 @@ void pcntl_signal_dispatch()
12331233
sigprocmask(SIG_BLOCK, &mask, &old_mask);
12341234

12351235
/* Bail if the queue is empty or if we are already playing the queue*/
1236-
if (! PCNTL_G(head) || PCNTL_G(processing_signal_queue))
1236+
if (! PCNTL_G(head) || PCNTL_G(processing_signal_queue)) {
1237+
sigprocmask(SIG_SETMASK, &old_mask, NULL);
12371238
return;
1239+
}
12381240

12391241
/* Prevent reentrant handler calls */
12401242
PCNTL_G(processing_signal_queue) = 1;

0 commit comments

Comments
 (0)