Quellcode durchsuchen

Fix the property for restarting syscalls (#1251)

Credit goes to @gmponos for reporting the problem.
Robert Gust-Bardon vor 7 Jahren
Ursprung
Commit
db54e30a86
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1 1
      src/Monolog/SignalHandler.php

+ 1 - 1
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);