mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-07-02 14:25:38 +08:00
add windows exit code support
This commit is contained in:
@@ -37,10 +37,7 @@ ob_event_provider()->addEventListener(WorkerStartEvent::getName(), function () {
|
||||
} finally {
|
||||
global $_swoole_atomic;
|
||||
$_swoole_atomic->set($retcode ?? 0);
|
||||
if (DIRECTORY_SEPARATOR === '\\') {
|
||||
exit($retcode ?? 0);
|
||||
}
|
||||
Framework::getInstance()->stop();
|
||||
Framework::getInstance()->stop($retcode ?? 0);
|
||||
}
|
||||
}, 1);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user