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.
1 parent f2c536a commit daadf86Copy full SHA for daadf86
1 file changed
src/Process.php
@@ -297,6 +297,9 @@ public function close()
297
return;
298
}
299
300
+ $process = $this->process;
301
+ $this->process = null;
302
+
303
foreach ($this->pipes as $pipe) {
304
$pipe->close();
305
@@ -306,8 +309,7 @@ public function close()
306
309
$this->closeExitCodePipe();
307
310
308
311
- $exitCode = \proc_close($this->process);
- $this->process = null;
312
+ $exitCode = \proc_close($process);
313
314
if ($this->exitCode === null && $exitCode !== -1) {
315
$this->exitCode = $exitCode;
0 commit comments