From db54e30a8682902301eff42cd8e830c67406789a Mon Sep 17 00:00:00 2001 From: Robert Gust-Bardon Date: Tue, 11 Dec 2018 04:05:15 -0500 Subject: [PATCH] Fix the property for restarting syscalls (#1251) Credit goes to @gmponos for reporting the problem. --- src/Monolog/SignalHandler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Monolog/SignalHandler.php b/src/Monolog/SignalHandler.php index 6cad7ed9..4a79fe66 100644 --- a/src/Monolog/SignalHandler.php +++ b/src/Monolog/SignalHandler.php @@ -87,7 +87,7 @@ class SignalHandler if (extension_loaded('pcntl') && function_exists('pcntl_signal') && function_exists('pcntl_sigprocmask') && function_exists('pcntl_signal_dispatch') && extension_loaded('posix') && function_exists('posix_getpid') && function_exists('posix_kill') ) { - $restartSyscalls = isset($this->restartSyscalls[$signo]) ? $this->restartSyscalls[$signo] : true; + $restartSyscalls = $this->signalRestartSyscalls[$signo] ?? true; pcntl_signal($signo, SIG_DFL, $restartSyscalls); pcntl_sigprocmask(SIG_UNBLOCK, [$signo], $oldset); posix_kill(posix_getpid(), $signo);