1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-08-07 05:36:45 +02:00

Merge branch '2.x'

This commit is contained in:
Jordi Boggiano
2024-04-12 15:36:24 +02:00
11 changed files with 24 additions and 21 deletions

View File

@@ -34,7 +34,7 @@ class SignalHandlerTest extends TestCase
$this->asyncSignalHandling = pcntl_async_signals();
}
if (function_exists('pcntl_sigprocmask')) {
pcntl_sigprocmask(SIG_BLOCK, [], $this->blockedSignals);
pcntl_sigprocmask(SIG_SETMASK, [], $this->blockedSignals);
}
}
}
@@ -146,7 +146,7 @@ class SignalHandlerTest extends TestCase
posix_kill(posix_getpid(), $signo);
pcntl_signal_dispatch();
// If $callPrevious is true, SIGINT should terminate by this line.
pcntl_sigprocmask(SIG_BLOCK, [], $oldset);
pcntl_sigprocmask(SIG_SETMASK, [], $oldset);
file_put_contents($path, implode(' ', $oldset), FILE_APPEND);
posix_kill(posix_getpid(), $signo);
pcntl_signal_dispatch();