Skip to content

Commit 1f91fd3

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 afdabb1 commit 1f91fd3

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)