From 248f4d7100c8a51c7ff7152a9d623b5210427712 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Fri, 14 Jan 2022 16:11:23 +0800 Subject: [PATCH] =?UTF-8?q?Revert=20"=E6=94=B9=E5=90=8D"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit fdf58326 --- Events/OnProcessStart.php | 8 ++++++++ ProcessManager.php | 7 ++++++- 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 Events/OnProcessStart.php diff --git a/Events/OnProcessStart.php b/Events/OnProcessStart.php new file mode 100644 index 0000000..e7d2f59 --- /dev/null +++ b/Events/OnProcessStart.php @@ -0,0 +1,8 @@ +isLinux()) { $process->name($system . '(' . $customProcess->getName() . ')'); } + + Kiri::getDi()->get(EventDispatch::class)->dispatch(new OnProcessStart()); + set_env('environmental', Kiri::PROCESS); $channel = Coroutine::create(function () use ($process, $customProcess) { while (!$customProcess->isStop()) {