소스 검색

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