Skip to content

Commit c43fd1d

Browse files
committed
Properly forward the signal to the original handler if TSRM is shutdown.
This ensures proper handling of SIGQUIT in ZTS fpm builds outside of active requests.
1 parent 275bf3b commit c43fd1d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Zend/zend_signal.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,8 +179,7 @@ static void zend_signal_handler(int signo, siginfo_t *siginfo, void *context)
179179
zend_signal_entry_t p_sig;
180180
#ifdef ZTS
181181
if (tsrm_is_shutdown()) {
182-
p_sig.flags = 0;
183-
p_sig.handler = SIG_DFL;
182+
p_sig = global_orig_handlers[signo-1];
184183
} else
185184
#endif
186185
p_sig = SIGG(handlers)[signo-1];

0 commit comments

Comments
 (0)