(
childProcess: NodeChildProcess.ChildProcess,
onExit: (error: NodeChildProcess.ExecException | null) => void = () => {}
)
| 67 | type ExitSignal = Deferred.Deferred<ExitCodeWithSignal> |
| 68 | |
| 69 | const taskkill = ( |
| 70 | childProcess: NodeChildProcess.ChildProcess, |
| 71 | onExit: (error: NodeChildProcess.ExecException | null) => void = () => {} |
| 72 | ) => |
| 73 | NodeChildProcess.execFile( |
| 74 | "taskkill", |
| 75 | ["/pid", String(childProcess.pid!), "/T", "/F"], |
| 76 | { windowsHide: true }, |
| 77 | onExit |
| 78 | ) |
| 79 | |
| 80 | const make = Effect.gen(function*() { |
| 81 | const fs = yield* FileSystem.FileSystem |
no test coverage detected