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)
41
41
// forcefully terminate process when stream closes
42
42
$ stream ->on ('close ' , function () use ($ process ) {
43
43
if ($ process ->isRunning ()) {
44
- $ process ->terminate (SIGKILL );
44
+ $ process ->terminate (defined ( ' SIGKILL ' ) ? SIGKILL : null );
45
45
}
46
46
});
47
47
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ public function testClosingStreamTerminatesRunningProcess()
41
41
$ process ->stdin ->expects ($ this ->any ())->method ('isWritable ' )->willReturn (true );
42
42
43
43
$ process ->expects ($ this ->once ())->method ('isRunning ' )->will ($ this ->returnValue (true ));
44
- $ process ->expects ($ this ->once ())->method ('terminate ' )->with ($ this ->equalTo (SIGKILL ));
44
+ $ process ->expects ($ this ->once ())->method ('terminate ' )->with ($ this ->equalTo (defined ( ' SIGKILL ' ) ? SIGKILL : null ));
45
45
46
46
$ shell = $ this ->processLauncher ->createDeferredShell ($ process );
47
47
You can’t perform that action at this time.
0 commit comments