Skip to content

Commit

Permalink
Fixed CTRL-C handling on Linux [Closes #145]
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Feb 4, 2022
1 parent 15e8ce4 commit e5ff0d1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Deployment/CliRunner.php
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,8 @@ private function setupPhp(): void
pcntl_signal(SIGINT, SIG_DFL);
throw new \Exception('Terminated');
});
pcntl_async_signals(true);

} elseif (function_exists('sapi_windows_set_ctrl_handler')) {
sapi_windows_set_ctrl_handler(function () {
throw new \Exception('Terminated');
Expand Down

0 comments on commit e5ff0d1

Please sign in to comment.