File tree 1 file changed +3
-6
lines changed
1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -713,20 +713,17 @@ private function processChildProcs($childProcs)
713
713
$ numProcessed = 0 ;
714
714
$ totalBatches = count ($ childProcs );
715
715
716
- $ success = true ;
717
- $ childProcessFailed = false ;
716
+ $ success = true ;
718
717
719
718
while (count ($ childProcs ) > 0 ) {
720
719
$ pid = pcntl_waitpid (0 , $ status );
721
-
722
720
if ($ pid <= 0 ) {
723
721
continue ;
724
722
}
725
723
726
724
$ childProcessStatus = pcntl_wexitstatus ($ status );
727
-
728
725
if ($ childProcessStatus !== 0 ) {
729
- $ childProcessFailed = true ;
726
+ $ success = false ;
730
727
}
731
728
732
729
$ out = $ childProcs [$ pid ];
@@ -776,7 +773,7 @@ private function processChildProcs($childProcs)
776
773
$ this ->printProgress ($ file , $ totalBatches , $ numProcessed );
777
774
}//end while
778
775
779
- return $ success && ! $ childProcessFailed ;
776
+ return $ success ;
780
777
781
778
}//end processChildProcs()
782
779
You can’t perform that action at this time.
0 commit comments