From 979084515a8d14bf9cbe6f3d86f4394a43ebcac6 Mon Sep 17 00:00:00 2001 From: Tomer Zait Date: Tue, 6 May 2025 19:00:33 +0300 Subject: [PATCH] fix issue #64 --- src/lib/utils.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/lib/utils.ts b/src/lib/utils.ts index c88a08b..d345c77 100644 --- a/src/lib/utils.ts +++ b/src/lib/utils.ts @@ -477,6 +477,11 @@ export function setupSignalHandlers(cleanup: () => Promise) { // Keep the process alive process.stdin.resume() + process.stdin.on('end', async () => { + log('\nShutting down...') + await cleanup() + process.exit(0) + }) } /**