(code: number)
| 105 | ); |
| 106 | |
| 107 | const exitHandler = (code: number) => { |
| 108 | if (closedReason) { |
| 109 | return; |
| 110 | } |
| 111 | close(code, { kind: 'exit' }); |
| 112 | }; |
| 113 | |
| 114 | process.on('uncaughtException', uncaughtExceptionHandler); |
| 115 | process.on('unhandledRejection', unhandledRejectionHandler); |