[create-project] If process terminated with SIGINT then 130 IMO will be returned. Remove unused variable
parent
38bc4e6a78
commit
a59c46f781
|
@ -293,11 +293,10 @@ EOT
|
||||||
// handler Ctrl+C for unix-like systems
|
// handler Ctrl+C for unix-like systems
|
||||||
if (function_exists('pcntl_signal')) {
|
if (function_exists('pcntl_signal')) {
|
||||||
declare(ticks = 100);
|
declare(ticks = 100);
|
||||||
$isPcntlHandler = true;
|
|
||||||
pcntl_signal(SIGINT, function() use ($directory) {
|
pcntl_signal(SIGINT, function() use ($directory) {
|
||||||
$fs = new Filesystem();
|
$fs = new Filesystem();
|
||||||
$fs->removeDirectory($directory);
|
$fs->removeDirectory($directory);
|
||||||
exit();
|
exit(130);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue