Skip to content

Commit cc67f5e

Browse files
committed
fix: the normal exit should trigger the beforeShutdown
1 parent efc2cb6 commit cc67f5e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/before-shutdown.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export type BeforeShutdownListener = (signalOrEvent: string) => Promise<void>|vo
2626
*
2727
* SIGINT, a.k.a Ctrl + C, and SIGTERM by default
2828
*/
29-
export const SHUTDOWN_SIGNALS = ['SIGINT', 'SIGTERM'];
29+
export const SHUTDOWN_SIGNALS = ['SIGINT', 'SIGTERM', 'exit'];
3030

3131
/**
3232
* Time in milliseconds to wait before forcing shutdown.

0 commit comments

Comments
 (0)