From e5ff0d1cd3044c8339a0062811962fc9a40cec91 Mon Sep 17 00:00:00 2001 From: David Grudl Date: Thu, 3 Feb 2022 16:30:31 +0100 Subject: [PATCH] Fixed CTRL-C handling on Linux [Closes #145] --- src/Deployment/CliRunner.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Deployment/CliRunner.php b/src/Deployment/CliRunner.php index f3a6d0f..b98b61c 100644 --- a/src/Deployment/CliRunner.php +++ b/src/Deployment/CliRunner.php @@ -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');