fix: [bgjobs] Try to close pipes before proc_close

pull/8155/head
Jakub Onderka 2022-02-22 14:45:10 +01:00
parent 4d9543d00a
commit 4959173af6
1 changed files with 2 additions and 0 deletions

View File

@ -89,7 +89,9 @@ class BackgroundJob implements JsonSerializable
);
$this->output = stream_get_contents($pipes[1]);
fclose($pipes[1]);
$this->error = stream_get_contents($pipes[2]);
fclose($pipes[2]);
$this->returnCode = proc_close($process);