This commit is contained in:
Tomer Zait 2025-05-06 19:00:33 +03:00 committed by Glen Maddern
parent 46e3333416
commit 767549412f

View file

@ -484,6 +484,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)
})
}
/**