1
0
Fork 0
mirror of https://github.com/terribleplan/next.js.git synced 2024-01-19 02:48:18 +00:00

Set correct status for sigint (#4917)

Fixes #4916
This commit is contained in:
Tim Neutkens 2018-08-07 11:50:26 -07:00 committed by GitHub
parent a528565c69
commit 6de99ebc4a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -75,7 +75,7 @@ const startProcess = () => {
process.exit(137)
}
console.log(`got signal ${signal}, exiting`)
process.exit(1)
process.exit(signal === 'SIGINT' ? 0 : 1)
}
process.exit(0)
})