We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 417a3c3 commit 15fcc32Copy full SHA for 15fcc32
1 file changed
src/Context/FeatureContext.php
@@ -762,7 +762,7 @@ private static function terminate_proc( $master_pid ): void {
762
763
$output = shell_exec( "ps -o ppid,pid,command | grep $master_pid" );
764
765
- foreach ( explode( PHP_EOL, $output ) as $line ) {
+ foreach ( explode( PHP_EOL, $output ? $output : '' ) as $line ) {
766
if ( preg_match( '/^\s*(\d+)\s+(\d+)/', $line, $matches ) ) {
767
$parent = $matches[1];
768
$child = $matches[2];
0 commit comments