mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-11-23 22:59:09 +00:00
fix(cli): defer PID file cleanup to process exit event for graceful shutdowns
This commit is contained in:
@@ -256,7 +256,6 @@ export async function handleDaemonCommands(
|
||||
process.on('exit', cleanPidFile)
|
||||
|
||||
const handleSignal = (signal: string) => {
|
||||
cleanPidFile()
|
||||
if (process.listenerCount(signal) === 1) {
|
||||
process.exit(0)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user