mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-07-22 08:05:34 +08:00
move process state related function to ProcessManager
This commit is contained in:
@@ -46,7 +46,7 @@ class OnManagerStart implements SwooleEvent
|
||||
if (!Framework::$argv['disable-safe-exit']) {
|
||||
SignalListener::signalManager();
|
||||
}
|
||||
Framework::saveProcessState(ZM_PROCESS_MANAGER, $server->manager_pid);
|
||||
ProcessManager::saveProcessState(ZM_PROCESS_MANAGER, $server->manager_pid);
|
||||
|
||||
ProcessManager::createUserProcess('monitor', function () use ($server) {
|
||||
Process::signal(SIGINT, function () {
|
||||
|
||||
Reference in New Issue
Block a user