Skip to content

Commit f8495e5

Browse files
committed
clear timers
1 parent 3f82da0 commit f8495e5

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
@@ -98,6 +98,15 @@ void zend_max_execution_timer_shutdown(void) /* {{{ */
9898
if (err != 0) {
9999
zend_strerror_noreturn(E_ERROR, errno, "Could not delete timer");
100100
}
101+
102+
struct sigaction ign_sigrtmin, prev;
103+
ign_sigrtmin.sa_handler = SIG_IGN;
104+
ign_sigrtmin.sa_flags = 0;
105+
sigemptyset(&ign_sigrtmin.sa_mask);
106+
107+
if(sigaction(SIGRTMIN, &ign_sigrtmin, &prev) < 0) {
108+
zend_strerror_noreturn(E_ERROR, errno, "Could not clear pending timer signal");
109+
}
101110
}
102111
/* }}}} */
103112

0 commit comments

Comments
 (0)