com php-src: Reinstall pcntl tick handler on each request (it cleared after the first request).: ext/pcntl/pcntl.c
| From: | Dmitry Stogov | Date: | Wed, 20 Feb 2019 19:36:51 +0000 |
| Subject: | com php-src: Reinstall pcntl tick handler on each request (it cleared after the first request).: ext/pcntl/pcntl.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-104792@lists.php.net to get a copy of this message | ||
Commit: 67682356fba0405b1c75d7ae199f7beda82fbf84
Author: Dmitry Stogov <dmitry@zend.com> Wed, 20 Feb 2019 22:36:51 +0300
Parents: 3d05a6bfea066649a1c9830f3d8bedc56343da50
Branches: PHP-7.4 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=67682356fba0405b1c75d7ae199f7beda82fbf84
Log:
Reinstall pcntl tick handler on each request (it cleared after the first request).
Changed paths:
M ext/pcntl/pcntl.c
Diff:
diff --git a/ext/pcntl/pcntl.c b/ext/pcntl/pcntl.c
index 14378c6..ab7e586 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;