From 4941fa24f48ef2c7192b733b936eff62dc8ee121 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Wed, 23 Dec 2020 16:58:16 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Kafka/Kafka.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Kafka/Kafka.php b/Kafka/Kafka.php index 3b8662df..fdd77488 100644 --- a/Kafka/Kafka.php +++ b/Kafka/Kafka.php @@ -39,8 +39,11 @@ class Kafka extends \Snowflake\Process\Process { $this->channelListener(); - Process::signal(SIGUSR1, function () use ($process) { - var_dump($process); + go(function () use ($process) { + $sign = Coroutine::waitSignal(SIGUSR1 | SIGTERM | SIGKILL, -1); + + + var_dump($sign); }); $waite = new WaitGroup();