From 68daf640be6471260a57f2fc6c09aca5d316477b Mon Sep 17 00:00:00 2001 From: stanislav Date: Tue, 29 Jul 2025 15:08:21 +0300 Subject: [PATCH] Handle SIGQUIT signal --- Command/BaseConsumerCommand.php | 1 + Command/BatchConsumerCommand.php | 1 + 2 files changed, 2 insertions(+) diff --git a/Command/BaseConsumerCommand.php b/Command/BaseConsumerCommand.php index ff1c8039..7d2809ba 100644 --- a/Command/BaseConsumerCommand.php +++ b/Command/BaseConsumerCommand.php @@ -83,6 +83,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int pcntl_signal(SIGTERM, [&$this, 'stopConsumer']); pcntl_signal(SIGINT, [&$this, 'stopConsumer']); + pcntl_signal(SIGQUIT, [&$this, 'stopConsumer']); pcntl_signal(SIGHUP, [&$this, 'restartConsumer']); } diff --git a/Command/BatchConsumerCommand.php b/Command/BatchConsumerCommand.php index 46bd1571..1afa5b9f 100644 --- a/Command/BatchConsumerCommand.php +++ b/Command/BatchConsumerCommand.php @@ -69,6 +69,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int pcntl_signal(SIGTERM, [&$this, 'stopConsumer']); pcntl_signal(SIGINT, [&$this, 'stopConsumer']); + pcntl_signal(SIGQUIT, [&$this, 'stopConsumer']); } if (defined('AMQP_DEBUG') === false) {