瀏覽代碼

[create-project] If process terminated with SIGINT then 130 IMO will be returned. Remove unused variable

Barys Biankouski 9 年之前
父節點
當前提交
a59c46f781
共有 1 個文件被更改,包括 1 次插入2 次删除
  1. 1 2
      src/Composer/Command/CreateProjectCommand.php

+ 1 - 2
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);
             });
         }