From a59c46f781ff2c65390b764fd08de550cc53bcf9 Mon Sep 17 00:00:00 2001 From: Barys Biankouski Date: Thu, 11 Jun 2015 19:50:52 +0300 Subject: [PATCH] [create-project] If process terminated with SIGINT then 130 IMO will be returned. Remove unused variable --- src/Composer/Command/CreateProjectCommand.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Composer/Command/CreateProjectCommand.php b/src/Composer/Command/CreateProjectCommand.php index f25b2170a..817bcf4cd 100644 --- a/src/Composer/Command/CreateProjectCommand.php +++ b/src/Composer/Command/CreateProjectCommand.php @@ -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); }); }