Add @Seldaek remote modifications

This commit is contained in:
Romain Neutron 2012-08-30 14:49:05 +02:00
parent 3bfb9762d7
commit 407db6510b
1 changed files with 1 additions and 1 deletions

View File

@ -218,7 +218,7 @@ class Process
array('pipe', 'w'), // stderr
array('pipe', 'w') // last exit code is output on the fourth pipe and caught to work around --enable-sigchild
);
$this->commandline = '('.$this->commandline.') 3>/dev/null; echo $? >&3';
$this->commandline = '('.$this->commandline.') 3>/dev/null; code=$?; echo $code >&3; exit $code';
}
$commandline = $this->commandline;