Skip to content

Commit 67c33c3

Browse files
committed
Fix the property for restarting syscalls (#1251)
Credit goes to @gmponos for reporting the problem.
1 parent b46967e commit 67c33c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Monolog/SignalHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ public function handleSignal($signo, array $siginfo = null)
9696
if ($this->previousSignalHandler[$signo] === true || $this->previousSignalHandler[$signo] === SIG_DFL) {
9797
if (extension_loaded('pcntl') && function_exists('pcntl_signal') && function_exists('pcntl_sigprocmask') && function_exists('pcntl_signal_dispatch')
9898
&& extension_loaded('posix') && function_exists('posix_getpid') && function_exists('posix_kill')) {
99-
$restartSyscalls = isset($this->restartSyscalls[$signo]) ? $this->restartSyscalls[$signo] : true;
99+
$restartSyscalls = isset($this->signalRestartSyscalls[$signo]) ? $this->signalRestartSyscalls[$signo] : true;
100100
pcntl_signal($signo, SIG_DFL, $restartSyscalls);
101101
pcntl_sigprocmask(SIG_UNBLOCK, array($signo), $oldset);
102102
posix_kill(posix_getpid(), $signo);

0 commit comments

Comments
 (0)