mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
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.
This commit is contained in:
parent
10d912d6e3
commit
059bf33e60
1 changed files with 1 additions and 2 deletions
|
@ -183,8 +183,7 @@ static void zend_signal_handler(int signo, siginfo_t *siginfo, void *context)
|
||||||
zend_signal_entry_t p_sig;
|
zend_signal_entry_t p_sig;
|
||||||
#ifdef ZTS
|
#ifdef ZTS
|
||||||
if (tsrm_is_shutdown() || !tsrm_get_ls_cache()) {
|
if (tsrm_is_shutdown() || !tsrm_get_ls_cache()) {
|
||||||
p_sig.flags = 0;
|
p_sig = global_orig_handlers[signo-1];
|
||||||
p_sig.handler = SIG_DFL;
|
|
||||||
} else
|
} else
|
||||||
#endif
|
#endif
|
||||||
p_sig = SIGG(handlers)[signo-1];
|
p_sig = SIGG(handlers)[signo-1];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue