Skip to content

Commit 79068fd

Browse files
Fix missing constant on OSX
1 parent 30605db commit 79068fd

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Crusse/JobServer/Server.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,9 @@ function __destruct() {
3535
// Kill any stuck processes. They should already have all finished after
3636
// their sockets were closed by EventLoop->stop(), so normally this
3737
// should not do anything.
38-
$proc->stop( 0, SIGTERM );
38+
//
39+
// On some platforms (OSX) the SIGTERM constant is not defined.
40+
$proc->stop( 0, ( defined( 'SIGTERM' ) ? SIGTERM : 15 ) );
3941
}
4042
}
4143

0 commit comments

Comments
 (0)