Skip to content

Commit 059bf33

Browse files
authored
Properly forward the signal to the original handler if TSRM is shutdown. (#10219)
This ensures proper handling of SIGQUIT in ZTS fpm builds outside of active requests.
1 parent 10d912d commit 059bf33

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
@@ -183,8 +183,7 @@ static void zend_signal_handler(int signo, siginfo_t *siginfo, void *context)
183183
zend_signal_entry_t p_sig;
184184
#ifdef ZTS
185185
if (tsrm_is_shutdown() || !tsrm_get_ls_cache()) {
186-
p_sig.flags = 0;
187-
p_sig.handler = SIG_DFL;
186+
p_sig = global_orig_handlers[signo-1];
188187
} else
189188
#endif
190189
p_sig = SIGG(handlers)[signo-1];

0 commit comments

Comments
 (0)