From 9f1811b20fc016a94dbdb79f5c13a4dff73c7258 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Tue, 2 Mar 2021 10:29:48 +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 --- HttpServer/Events/OnWorkerStart.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/HttpServer/Events/OnWorkerStart.php b/HttpServer/Events/OnWorkerStart.php index af585f87..7ff26ede 100644 --- a/HttpServer/Events/OnWorkerStart.php +++ b/HttpServer/Events/OnWorkerStart.php @@ -94,7 +94,7 @@ class OnWorkerStart extends Callback public function onSignal(Server $server, $worker_id): mixed { $ret = Coroutine::waitSignal($this->signal, -1); - Coroutine::create(function () use ($server) { + go(function () use ($server) { var_dump(Coroutine::waitPid($server->worker_pid, -1)); }); if ($ret === true) {