Unverified Commit f716f704 authored by JJ Kasper's avatar JJ Kasper Committed by GitHub

Honor NEXT_MANUAL_SIG_HANDLE flag in standalone mode (#38346)

parent 9f162cc8
...@@ -1219,8 +1219,11 @@ const http = require('http') ...@@ -1219,8 +1219,11 @@ const http = require('http')
const path = require('path') const path = require('path')
// Make sure commands gracefully respect termination signals (e.g. from Docker) // Make sure commands gracefully respect termination signals (e.g. from Docker)
process.on('SIGTERM', () => process.exit(0)) // Allow the graceful termination to be manually configurable
process.on('SIGINT', () => process.exit(0)) if (!process.env.NEXT_MANUAL_SIG_HANDLE) {
process.on('SIGTERM', () => process.exit(0))
process.on('SIGINT', () => process.exit(0))
}
let handler let handler
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment