Explorar o código

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

Barys Biankouski %!s(int64=9) %!d(string=hai) anos
pai
achega
a59c46f781
Modificáronse 1 ficheiros con 1 adicións e 2 borrados
  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);
             });
         }