Skip to content

Commit 37e9278

Browse files
committed
clear timers
1 parent 6d039d2 commit 37e9278

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Zend/zend_max_execution_timer.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,15 @@ void zend_max_execution_timer_shutdown(void) /* {{{ */
9797
if (err != 0) {
9898
zend_strerror_noreturn(E_ERROR, errno, "Could not delete timer");
9999
}
100+
101+
struct sigaction ign_sigrtmin, prev;
102+
ign_sigrtmin.sa_handler = SIG_IGN;
103+
ign_sigrtmin.sa_flags = 0;
104+
sigemptyset(&ign_sigrtmin.sa_mask);
105+
106+
if(sigaction(SIGRTMIN, &ign_sigrtmin, &prev) < 0) {
107+
zend_strerror_noreturn(E_ERROR, errno, "Could not clear pending timer signal");
108+
}
100109
}
101110
/* }}}} */
102111

0 commit comments

Comments
 (0)