Skip to content

Commit d91726b

Browse files
authored
Check scan status (#5461)
1 parent 2b64431 commit d91726b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/ScanHandler/ProcScanHandler.php

+5-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,11 @@ public function scan(): Scanned
5151
do {
5252
$output .= fread($pipes[1], 8192);
5353
} while (! feof($pipes[1]));
54-
proc_close($proc);
54+
55+
if (proc_close($proc) !== 0) {
56+
echo $output;
57+
exit(-1);
58+
}
5559

5660
return new Scanned(true);
5761
}

0 commit comments

Comments
 (0)