mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-07-20 23:25:35 +08:00
fix windows CtrlC capture bug
This commit is contained in:
@@ -119,10 +119,10 @@ class SignalListener
|
||||
}
|
||||
echo "\r";
|
||||
logger()->notice('请再按 {count} 次 Ctrl+C 以强制杀死进程', ['count' => 5 - self::$manager_kill_time]);
|
||||
return;
|
||||
}
|
||||
++self::$manager_kill_time;
|
||||
if (self::$manager_kill_time === 1) {
|
||||
logger()->notice('Keyboard interrupt, shutting down server...');
|
||||
Framework::getInstance()->stop();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user