Skip to content

Commit a0d495e

Browse files
committed
remove prev handler variable
1 parent 1c5ad15 commit a0d495e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Zend/zend_max_execution_timer.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,12 +110,12 @@ void zend_max_execution_timer_shutdown(void) /* {{{ */
110110
zend_strerror_noreturn(E_ERROR, errno, "Could not delete timer");
111111
}
112112

113-
struct sigaction ign_sigrtmin, prev;
113+
struct sigaction ign_sigrtmin;
114114
ign_sigrtmin.sa_handler = SIG_IGN;
115115
ign_sigrtmin.sa_flags = 0;
116116
sigemptyset(&ign_sigrtmin.sa_mask);
117117

118-
if(sigaction(SIGRTMIN, &ign_sigrtmin, &prev) < 0) {
118+
if(sigaction(SIGRTMIN, &ign_sigrtmin, NULL) < 0) {
119119
zend_strerror_noreturn(E_ERROR, errno, "Could not clear pending timer signal");
120120
}
121121
is_handler_set = false;

0 commit comments

Comments
 (0)