(options?: ChildProcess.KillOptions | undefined)
| 544 | return Effect.fail(toPlatformError("exitCode", error, cmd)) |
| 545 | }) |
| 546 | const kill = (options?: ChildProcess.KillOptions | undefined) => { |
| 547 | const killWithTimeout = withTimeout(childProcess, cmd, options) |
| 548 | return killWithTimeout((command, childProcess, signal) => |
| 549 | killProcessGroup(command, childProcess, signal).pipe( |
| 550 | Effect.catch(() => killProcess(command, childProcess, signal)), |
| 551 | Effect.andThen(Deferred.await(exitSignal)) |
| 552 | ) |
| 553 | ).pipe( |
| 554 | Effect.asVoid |
| 555 | ) |
| 556 | } |
| 557 | |
| 558 | return makeHandle({ |
| 559 | pid, |
no test coverage detected