1
0
Fork 0
mirror of https://github.com/composer/composer synced 2025-05-09 08:32:56 +00:00

Add seld/signal-handler dependency

This commit is contained in:
Jordi Boggiano 2022-07-20 17:00:20 +02:00
parent 26e01abfae
commit 1a4f2174e4
No known key found for this signature in database
GPG key ID: 7BBD42C429EC80BC
8 changed files with 109 additions and 103 deletions

View file

@ -94,13 +94,6 @@ class Application extends BaseApplication
}
if (!$shutdownRegistered) {
if (function_exists('pcntl_async_signals') && function_exists('pcntl_signal')) {
pcntl_async_signals(true);
pcntl_signal(SIGINT, static function ($sig): void {
exit(130);
});
}
$shutdownRegistered = true;
register_shutdown_function(static function (): void {