Skip to content

Commit d3b1fbb

Browse files
committed
fix
1 parent 9233f26 commit d3b1fbb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Zend/zend_execute_API.c

+2
Original file line numberDiff line numberDiff line change
@@ -1543,6 +1543,7 @@ static void zend_set_timeout_ex(zend_long seconds, bool reset_signals) /* {{{ */
15431543
#elif defined(ZEND_MAX_EXECUTION_TIMERS)
15441544
zend_max_execution_timer_settime(seconds);
15451545

1546+
# if !defined(__APPLE__) || defined(ZTS)
15461547
if (reset_signals) {
15471548
sigset_t sigset;
15481549
struct sigaction act;
@@ -1556,6 +1557,7 @@ static void zend_set_timeout_ex(zend_long seconds, bool reset_signals) /* {{{ */
15561557
sigaddset(&sigset, ZEND_MAX_EXECUTION_TIMERS_SIGNAL);
15571558
sigprocmask(SIG_UNBLOCK, &sigset, NULL);
15581559
}
1560+
# endif
15591561
#elif defined(HAVE_SETITIMER)
15601562
{
15611563
struct itimerval t_r; /* timeout requested */

0 commit comments

Comments
 (0)