File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ public function createDeferredShell($process)
4141 // forcefully terminate process when stream closes
4242 $ stream ->on ('close ' , function () use ($ process ) {
4343 if ($ process ->isRunning ()) {
44- $ process ->terminate (SIGKILL );
44+ $ process ->terminate (defined ( ' SIGKILL ' ) ? SIGKILL : null );
4545 }
4646 });
4747
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ public function testClosingStreamTerminatesRunningProcess()
3838 $ process ->stdin ->expects ($ this ->any ())->method ('isWritable ' )->willReturn (true );
3939
4040 $ process ->expects ($ this ->once ())->method ('isRunning ' )->will ($ this ->returnValue (true ));
41- $ process ->expects ($ this ->once ())->method ('terminate ' )->with ($ this ->equalTo (SIGKILL ));
41+ $ process ->expects ($ this ->once ())->method ('terminate ' )->with ($ this ->equalTo (defined ( ' SIGKILL ' ) ? SIGKILL : null ));
4242
4343 $ shell = $ this ->processLauncher ->createDeferredShell ($ process );
4444
You can’t perform that action at this time.
0 commit comments