Skip to content

Commit 84f6c28

Browse files
inderovych-stanislavstanislav
andauthored
Handle SIGQUIT signal (#736)
Co-authored-by: stanislav <s.inderovych@favbet.tech>
1 parent 76ca2c9 commit 84f6c28

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

Command/BaseConsumerCommand.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
8383

8484
pcntl_signal(SIGTERM, [&$this, 'stopConsumer']);
8585
pcntl_signal(SIGINT, [&$this, 'stopConsumer']);
86+
pcntl_signal(SIGQUIT, [&$this, 'stopConsumer']);
8687
pcntl_signal(SIGHUP, [&$this, 'restartConsumer']);
8788
}
8889

Command/BatchConsumerCommand.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
6969

7070
pcntl_signal(SIGTERM, [&$this, 'stopConsumer']);
7171
pcntl_signal(SIGINT, [&$this, 'stopConsumer']);
72+
pcntl_signal(SIGQUIT, [&$this, 'stopConsumer']);
7273
}
7374

7475
if (defined('AMQP_DEBUG') === false) {

0 commit comments

Comments
 (0)