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

Handle SIGTERM with status code 0 (#6143)

Fixes #6140
This commit is contained in:
Tim Neutkens 2019-01-26 22:51:08 +01:00 committed by GitHub
parent ca39752bc6
commit c6d3484a21
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -98,7 +98,7 @@ const startProcess = () => {
}
// tslint:disable-next-line
console.log(`got signal ${signal}, exiting`)
process.exit(signal === 'SIGINT' ? 0 : 1)
process.exit(signal === 'SIGINT' || signal === 'SIGTERM' ? 0 : 1)
}
process.exit(0)
})