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:
parent
26e01abfae
commit
1a4f2174e4
8 changed files with 109 additions and 103 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue