Skip to content

Commit 2dd8e1a

Browse files
committed
Retrieve exit code from process close
1 parent 6d164b7 commit 2dd8e1a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/CLI/Console.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,9 +166,9 @@ static public function execute(string $cmd, string $stdin, string &$stdout, stri
166166
if (!$status['running']) {
167167
\fclose($pipes[1]);
168168
\fclose($pipes[2]);
169-
\proc_close($process);
169+
$exitCode = \proc_close($process);
170170

171-
return (int)$status['exitcode'];
171+
return $exitCode;
172172
}
173173

174174
\usleep(10000);

0 commit comments

Comments
 (0)