We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 30605db commit 79068fdCopy full SHA for 79068fd
src/Crusse/JobServer/Server.php
@@ -35,7 +35,9 @@ function __destruct() {
35
// Kill any stuck processes. They should already have all finished after
36
// their sockets were closed by EventLoop->stop(), so normally this
37
// should not do anything.
38
- $proc->stop( 0, SIGTERM );
+ //
39
+ // On some platforms (OSX) the SIGTERM constant is not defined.
40
+ $proc->stop( 0, ( defined( 'SIGTERM' ) ? SIGTERM : 15 ) );
41
}
42
43
0 commit comments