(signal = "SIGTERM")
| 175 | const isRunning = Effect.negate(Deferred.isDone(exitCodeDeferred)) |
| 176 | |
| 177 | const kill: CommandExecutor.Process["kill"] = (signal = "SIGTERM") => |
| 178 | killProcessGroup(handle, signal).pipe( |
| 179 | Effect.orElse(() => killProcess(handle, signal)), |
| 180 | Effect.zipRight(Effect.asVoid(Deferred.await(exitCodeDeferred))) |
| 181 | ) |
| 182 | |
| 183 | const pid = CommandExecutor.ProcessId(handle.pid!) |
| 184 | const stderr = fromReadable<Error.PlatformError, Uint8Array>( |
nothing calls this directly
no test coverage detected