We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
wait
1 parent c43dcc6 commit 3e66f77Copy full SHA for 3e66f77
src/Symfony/Component/Process/Process.php
@@ -331,7 +331,7 @@ public function start(callable $callback = null, array $env = [])
331
332
// See https://unix.stackexchange.com/questions/71205/background-process-pipe-input
333
$commandline = '{ ('.$commandline.') <&3 3<&- 3>/dev/null & } 3<&0;';
334
- $commandline .= 'pid=$!; echo $pid >&3; wait $pid; code=$?; echo $code >&3; exit $code';
+ $commandline .= 'pid=$!; echo $pid >&3; wait $pid 2>/dev/null; code=$?; echo $code >&3; exit $code';
335
336
// Workaround for the bug, when PTS functionality is enabled.
337
// @see : https://bugs.php.net/69442
0 commit comments