()
| 283 | } |
| 284 | |
| 285 | const attachSigint = () => { |
| 286 | if (closed || sigintRegistered) { |
| 287 | return |
| 288 | } |
| 289 | |
| 290 | process.on("SIGINT", sigint) |
| 291 | sigintRegistered = true |
| 292 | } |
| 293 | |
| 294 | const detachSigint = () => { |
| 295 | if (!sigintRegistered) { |
no test coverage detected