Commit bf71509
committed
fix: Check that the result of pcntl_waitpid is the PID of a managed process
The --parallel option spawns processes with pcntl_fork and expects the
result of pcntl_waitpid to be one of its spawned processes. It looks up
the temporary output file of a process in the given $childProcs array
without checking if the returned process ID is actually managed, which
under some circumstances caused by external factors may result in an
undefined array index error.
Fixes #11121 parent 30fdf53 commit bf71509
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
777 | 777 | | |
778 | 778 | | |
779 | 779 | | |
780 | | - | |
| 780 | + | |
| 781 | + | |
781 | 782 | | |
782 | 783 | | |
783 | 784 | | |
| |||
0 commit comments