File tree 1 file changed +2
-2
lines changed
src/Symfony/Component/Process/Tests 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -167,7 +167,7 @@ public function testKillSignalTerminatesProcessCleanly()
167
167
$ process = $ this ->getProcess ('php -r "echo \'foo \'; sleep(1); echo \'bar \';" ' );
168
168
$ process ->run (function () use ($ process ) {
169
169
if ($ process ->isRunning ()) {
170
- $ process ->signal (SIGKILL );
170
+ $ process ->signal (defined ( ' SIGKILL ' ) ? SIGKILL : 9 );
171
171
}
172
172
});
173
173
} catch (RuntimeException $ e ) {
@@ -183,7 +183,7 @@ public function testTermSignalTerminatesProcessCleanly()
183
183
$ process = $ this ->getProcess ('php -r "echo \'foo \'; sleep(1); echo \'bar \';" ' );
184
184
$ process ->run (function () use ($ process ) {
185
185
if ($ process ->isRunning ()) {
186
- $ process ->signal (SIGTERM );
186
+ $ process ->signal (defined ( ' SIGTERM ' ) ? SIGTERM : 15 );
187
187
}
188
188
});
189
189
} catch (RuntimeException $ e ) {
You can’t perform that action at this time.
0 commit comments