mirror of
https://github.com/danog/process.git
synced 2024-12-02 09:37:55 +01:00
parent
974c6e2048
commit
2f79a32f04
@ -79,7 +79,7 @@ final class Runner implements ProcessRunner
|
|||||||
public function start(string $command, string $cwd = null, array $env = [], array $options = []): ProcessHandle
|
public function start(string $command, string $cwd = null, array $env = [], array $options = []): ProcessHandle
|
||||||
{
|
{
|
||||||
$command = \sprintf(
|
$command = \sprintf(
|
||||||
'{ (%s) <&3 3<&- 3>/dev/null & } 3<&0;' .
|
'{ (%s) <&3 3<&- 3>/dev/null & } 3<&0; trap "" INT TERM QUIT HUP;' .
|
||||||
'pid=$!; echo $pid >&3; wait $pid; RC=$?; echo $RC >&3; exit $RC',
|
'pid=$!; echo $pid >&3; wait $pid; RC=$?; echo $RC >&3; exit $RC',
|
||||||
$command
|
$command
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user