We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1d01d77 commit b5c4da2Copy full SHA for b5c4da2
cli/src/hooks/use-exit-handler.ts
@@ -69,6 +69,21 @@ export const useExitHandler = ({
69
}
70
71
scheduleGracefulExit()
72
+ // Belt-and-suspenders: if graceful exit stalls, force a SIGINT/exit shortly after.
73
+ setTimeout(() => {
74
+ try {
75
+ process.kill(process.pid, 'SIGINT')
76
+ } catch {
77
+ // ignore
78
+ }
79
+ }, 80)
80
81
82
+ process.exit(0)
83
84
85
86
+ }, 400)
87
}, [])
88
89
const flushAnalyticsWithTimeout = useCallback(async (timeoutMs = 1000) => {
0 commit comments