From adaa31fff830ad48087341aae5bb9d9461f24a1d Mon Sep 17 00:00:00 2001 From: Arnaud Le Blanc Date: Mon, 1 Nov 2010 22:40:29 +0000 Subject: [PATCH] fix the fix --- ext/pcntl/pcntl.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ext/pcntl/pcntl.c b/ext/pcntl/pcntl.c index de5b99e9b6..9f9f517033 100755 --- a/ext/pcntl/pcntl.c +++ b/ext/pcntl/pcntl.c @@ -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; -- 2.40.0