This commit is contained in:
Tomer Zait 2025-05-06 19:00:33 +03:00
parent 5c71b26869
commit 979084515a

View file

@ -477,6 +477,11 @@ export function setupSignalHandlers(cleanup: () => Promise<void>) {
// Keep the process alive
process.stdin.resume()
process.stdin.on('end', async () => {
log('\nShutting down...')
await cleanup()
process.exit(0)
})
}
/**