Skip to content

Commit 981386f

Browse files
committed
Fix get signals for run round robin consumer if pcntl not installed.
1 parent 750e315 commit 981386f

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/Command/RunRoundRobinConsumerCommand.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@ public function __construct(private readonly RoundRobinConsumer $consumer)
3737
*/
3838
public function getSubscribedSignals(): array
3939
{
40+
if (!\function_exists('pcntl_signal')) {
41+
return [];
42+
}
43+
4044
return [
4145
\SIGINT,
4246
\SIGTERM,

0 commit comments

Comments
 (0)