pull/20901/merge
tidyinfo 2026-04-08 04:51:21 -03:00 committed by GitHub
commit 0f88516f3d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 4 deletions

View File

@ -272,12 +272,10 @@ export const make = Effect.gen(function* () {
resume(Effect.fail(toPlatformError("spawn", err, command)))
})
proc.on("exit", (...args) => {
exit = args
})
proc.on("close", (...args) => {
if (end) return
end = true
Deferred.doneUnsafe(signal, Exit.succeed(exit ?? args))
exit = args
Deferred.doneUnsafe(signal, Exit.succeed(exit))
})
proc.on("spawn", () => {
resume(Effect.succeed([proc, signal]))