Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 3e66f77

Browse filesBrowse files
[Process] Fix silencing wait when using a sigchild-enabled binary
1 parent c43dcc6 commit 3e66f77
Copy full SHA for 3e66f77

File tree

1 file changed

+1
-1
lines changed
Filter options

1 file changed

+1
-1
lines changed

‎src/Symfony/Component/Process/Process.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Process/Process.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ public function start(callable $callback = null, array $env = [])
331331

332332
// See https://unix.stackexchange.com/questions/71205/background-process-pipe-input
333333
$commandline = '{ ('.$commandline.') <&3 3<&- 3>/dev/null & } 3<&0;';
334-
$commandline .= 'pid=$!; echo $pid >&3; wait $pid; code=$?; echo $code >&3; exit $code';
334+
$commandline .= 'pid=$!; echo $pid >&3; wait $pid 2>/dev/null; code=$?; echo $code >&3; exit $code';
335335

336336
// Workaround for the bug, when PTS functionality is enabled.
337337
// @see : https://bugs.php.net/69442

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.