(cleanupOptions?: { keepSigkillTimer?: boolean })
| 1068 | }; |
| 1069 | |
| 1070 | const cleanup = (cleanupOptions?: { keepSigkillTimer?: boolean }) => { |
| 1071 | if (timeoutTimer) { |
| 1072 | clearTimeout(timeoutTimer); |
| 1073 | timeoutTimer = null; |
| 1074 | } |
| 1075 | if (!cleanupOptions?.keepSigkillTimer) { |
| 1076 | terminator.cleanup(); |
| 1077 | } |
| 1078 | child.removeListener("close", onClose); |
| 1079 | child.removeListener("error", onError); |
| 1080 | options.signal?.removeEventListener("abort", onAbort); |
| 1081 | }; |
| 1082 | |
| 1083 | function onAbort() { |
| 1084 | terminator.terminate(); |
nothing calls this directly
no test coverage detected