From c6d3484a2112abceebf724fbabb80840ec24e6d1 Mon Sep 17 00:00:00 2001 From: Tim Neutkens Date: Sat, 26 Jan 2019 22:51:08 +0100 Subject: [PATCH] Handle SIGTERM with status code 0 (#6143) Fixes #6140 --- packages/next/bin/next.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/next/bin/next.ts b/packages/next/bin/next.ts index edb683af..c4d1fc1e 100755 --- a/packages/next/bin/next.ts +++ b/packages/next/bin/next.ts @@ -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) })