mirror of
https://github.com/composer/composer
synced 2025-05-10 09:02:59 +00:00
[create-project] If process terminated with SIGINT then 130 IMO will be returned. Remove unused variable
This commit is contained in:
parent
38bc4e6a78
commit
a59c46f781
1 changed files with 1 additions and 2 deletions
|
@ -293,11 +293,10 @@ EOT
|
|||
// handler Ctrl+C for unix-like systems
|
||||
if (function_exists('pcntl_signal')) {
|
||||
declare(ticks = 100);
|
||||
$isPcntlHandler = true;
|
||||
pcntl_signal(SIGINT, function() use ($directory) {
|
||||
$fs = new Filesystem();
|
||||
$fs->removeDirectory($directory);
|
||||
exit();
|
||||
exit(130);
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue