()
| 91 | |
| 92 | let exiting = false |
| 93 | const shutdownAndExit = async (): Promise<void> => { |
| 94 | if (exiting) return |
| 95 | exiting = true |
| 96 | await Promise.all([shutdown1PEventLogging(), shutdownDatadog()]) |
| 97 | // eslint-disable-next-line custom-rules/no-process-exit |
| 98 | process.exit(0) |
| 99 | } |
| 100 | process.stdin.on('end', () => void shutdownAndExit()) |
| 101 | process.stdin.on('error', () => void shutdownAndExit()) |
| 102 |
no test coverage detected