1
0
Fork 0
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:
Barys Biankouski 2015-06-11 19:50:52 +03:00
parent 38bc4e6a78
commit a59c46f781

View file

@ -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);
});
}