From 67682356fba0405b1c75d7ae199f7beda82fbf84 Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Wed, 20 Feb 2019 22:36:51 +0300 Subject: [PATCH] Reinstall pcntl tick handler on each request (it cleared after the first request). --- ext/pcntl/pcntl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/pcntl/pcntl.c b/ext/pcntl/pcntl.c index 14378c6db8..ab7e58685c 100644 --- a/ext/pcntl/pcntl.c +++ b/ext/pcntl/pcntl.c @@ -581,6 +581,7 @@ static PHP_GINIT_FUNCTION(pcntl) PHP_RINIT_FUNCTION(pcntl) { + php_add_tick_function(pcntl_signal_dispatch, NULL); zend_hash_init(&PCNTL_G(php_signal_table), 16, NULL, ZVAL_PTR_DTOR, 0); PCNTL_G(head) = PCNTL_G(tail) = PCNTL_G(spares) = NULL; PCNTL_G(async_signals) = 0; @@ -591,7 +592,6 @@ PHP_MINIT_FUNCTION(pcntl) { php_register_signal_constants(INIT_FUNC_ARGS_PASSTHRU); php_pcntl_register_errno_constants(INIT_FUNC_ARGS_PASSTHRU); - php_add_tick_function(pcntl_signal_dispatch, NULL); orig_interrupt_function = zend_interrupt_function; zend_interrupt_function = pcntl_interrupt_function; -- 2.49.0