8000 fix(process): don't call sigprocmask if there is no ignored signals · symfony/symfony@6f9c6de · GitHub
[go: up one dir, main page]

Skip to content

Commit 6f9c6de

Browse files
committed
fix(process): don't call sigprocmask if there is no ignored signals
1 parent 4c1d8eb commit 6f9c6de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Process/Process.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ public function start(?callable $callback = null, array $env = []): void
350350

351351
$oldMask = [];
352352

353-
if (\function_exists('pcntl_sigprocmask')) {
353+
if (\function_exists('pcntl_sigprocmask') && $this->ignoredSignals) {
354354
// we block signals we want to ignore, as proc_open will use fork / posix_spawn which will copy the signal mask this allow to block
355355
// signals in the child process
356356
pcntl_sigprocmask(\SIG_BLOCK, $this->ignoredSignals, $oldMask);

0 commit comments

Comments
 (0)
0