diff --git a/src/features/background-agent/process-cleanup.ts b/src/features/background-agent/process-cleanup.ts index d08890825..2d60ac15d 100644 --- a/src/features/background-agent/process-cleanup.ts +++ b/src/features/background-agent/process-cleanup.ts @@ -40,7 +40,7 @@ function registerProcessSignal( const listener = () => { const cleanupResult = handler() if (exitAfter) { - scheduleForcedExit(cleanupResult, 0) + scheduleForcedExit(cleanupResult, 0, true) } } process.on(signal, listener)