(name: 'exit' | 'SIGINT' | 'SIGTERM' | 'SIGHUP')
| 115 | SIGHUP: sighupHandler, |
| 116 | }; |
| 117 | function addProcessHandlerIfNeeded(name: 'exit' | 'SIGINT' | 'SIGTERM' | 'SIGHUP') { |
| 118 | if (!installedHandlers.has(name)) { |
| 119 | installedHandlers.add(name); |
| 120 | process.on(name, processHandlers[name]); |
| 121 | } |
| 122 | } |
| 123 | function removeProcessHandlersIfNeeded() { |
| 124 | if (killSet.size) |
| 125 | return; |
no test coverage detected
searching dependent graphs…