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()) {