Add a default signal handler to avoid having the SIGINTs ignored, fixes #9027
parent
ee4afa29e7
commit
1fa6f4c83c
|
@ -81,6 +81,13 @@ class Application extends BaseApplication
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!$shutdownRegistered) {
|
if (!$shutdownRegistered) {
|
||||||
|
if (function_exists('pcntl_async_signals') && function_exists('pcntl_signal')) {
|
||||||
|
pcntl_async_signals(true);
|
||||||
|
pcntl_signal(SIGINT, function ($sig) {
|
||||||
|
exit(130);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
$shutdownRegistered = true;
|
$shutdownRegistered = true;
|
||||||
|
|
||||||
register_shutdown_function(function () {
|
register_shutdown_function(function () {
|
||||||
|
|
Loading…
Reference in New Issue