"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "public_html/lists/base/vendor/monolog/monolog/src/Monolog/SignalHandler.php" between
phplist-3.4.5.tgz and phplist-3.4.6.tgz

About: phpList is a one-way email announcement delivery system for newsletters, publicity lists, notifications, and many other uses (requires PHP and MySQL).

SignalHandler.php  (phplist-3.4.5.tgz):SignalHandler.php  (phplist-3.4.6.tgz)
skipping to change at line 99 skipping to change at line 99
$context = isset($siginfo) ? $siginfo : array(); $context = isset($siginfo) ? $siginfo : array();
$this->logger->log($level, sprintf('Program received signal %s', $signal ), $context); $this->logger->log($level, sprintf('Program received signal %s', $signal ), $context);
if (!isset($this->previousSignalHandler[$signo])) { if (!isset($this->previousSignalHandler[$signo])) {
return; return;
} }
if ($this->previousSignalHandler[$signo] === true || $this->previousSign alHandler[$signo] === SIG_DFL) { if ($this->previousSignalHandler[$signo] === true || $this->previousSign alHandler[$signo] === SIG_DFL) {
if (extension_loaded('pcntl') && function_exists('pcntl_signal') && function_exists('pcntl_sigprocmask') && function_exists('pcntl_signal_dispatch') 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')) { && extension_loaded('posix') && function_exists('posix_getpid') && function_exists('posix_kill')) {
$restartSyscalls = isset($this->restartSyscalls[$signo]) ? $ this->restartSyscalls[$signo] : true; $restartSyscalls = isset($this->signalRestartSyscalls[$signo ]) ? $this->signalRestartSyscalls[$signo] : true;
pcntl_signal($signo, SIG_DFL, $restartSyscalls); pcntl_signal($signo, SIG_DFL, $restartSyscalls);
pcntl_sigprocmask(SIG_UNBLOCK, array($signo), $oldset); pcntl_sigprocmask(SIG_UNBLOCK, array($signo), $oldset);
posix_kill(posix_getpid(), $signo); posix_kill(posix_getpid(), $signo);
pcntl_signal_dispatch(); pcntl_signal_dispatch();
pcntl_sigprocmask(SIG_SETMASK, $oldset); pcntl_sigprocmask(SIG_SETMASK, $oldset);
pcntl_signal($signo, array($this, 'handleSignal'), $restartS yscalls); pcntl_signal($signo, array($this, 'handleSignal'), $restartS yscalls);
} }
} elseif (is_callable($this->previousSignalHandler[$signo])) { } elseif (is_callable($this->previousSignalHandler[$signo])) {
if (PHP_VERSION_ID >= 70100) { if (PHP_VERSION_ID >= 70100) {
$this->previousSignalHandler[$signo]($signo, $siginfo); $this->previousSignalHandler[$signo]($signo, $siginfo);
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)