()
| 278 | }); |
| 279 | |
| 280 | const shutdown = () => { |
| 281 | if (shuttingDown) return; |
| 282 | shuttingDown = true; |
| 283 | if (processKeepAlive) { |
| 284 | clearInterval(processKeepAlive); |
| 285 | processKeepAlive = null; |
| 286 | } |
| 287 | server.close(() => { |
| 288 | child.kill('SIGTERM'); |
| 289 | }); |
| 290 | }; |
| 291 | |
| 292 | process.on('SIGINT', shutdown); |
| 293 | process.on('SIGTERM', shutdown); |
nothing calls this directly
no outgoing calls
no test coverage detected