Skip to content

Commit 9a3cea2

Browse files
committed
Add exiting boolean
1 parent 09f7584 commit 9a3cea2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ function handle(signal, fn) {
5757
const fns = handlers[signal] = [fn]
5858

5959
process.on(signal, async function(error) {
60+
prexit.exiting = true
6061
error === signal && (error = null)
6162
if ((signal === 'uncaughtException' || signal === 'unhandledRejection') && prexit.logExceptions)
6263
console.error(error) // eslint-disable-line

0 commit comments

Comments
 (0)