()
| 303 | }); |
| 304 | // install handlers to stop proxy on exit/signal |
| 305 | const stopProxy = () => { |
| 306 | console.log('stopping proxy ...'); |
| 307 | if (proxyProcess?.pid) { |
| 308 | process.kill(-proxyProcess.pid, 'SIGTERM'); |
| 309 | } |
| 310 | }; |
| 311 | process.on('exit', stopProxy); |
| 312 | process.on('SIGINT', stopProxy); |
| 313 | process.on('SIGTERM', stopProxy); |
nothing calls this directly
no outgoing calls
no test coverage detected