This commit is contained in:
as2252258@163.com
2021-02-28 17:05:51 +08:00
parent 1173af55e9
commit 8f1897821e
+1 -2
View File
@@ -29,8 +29,6 @@ class OnWorkerStart extends Callback
public function init()
{
Coroutine::set(['enable_deadlock_check' => false]);
$this->onSignal();
}
@@ -44,6 +42,7 @@ class OnWorkerStart extends Callback
*/
public function onHandler(Server $server, int $worker_id): void
{
$this->onSignal();
$get_name = $this->get_process_name($server, $worker_id);
if (!empty($get_name) && !Snowflake::isMac()) {
swoole_set_process_name($get_name);