Skip to content

Commit

Permalink
Fix, waitpid() should wait for finished process. (#566)
Browse files Browse the repository at this point in the history
  • Loading branch information
cheatfate authored Jan 30, 2025
1 parent 7c5cbf0 commit 36d8ee5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chronos/asyncproc.nim
Original file line number Diff line number Diff line change
Expand Up @@ -996,7 +996,7 @@ else:
return
if not(isNil(timer)):
clearTimer(timer)
let exitCode = p.peekProcessExitCode().valueOr:
let exitCode = p.peekProcessExitCode(reap = true).valueOr:
retFuture.fail(newException(AsyncProcessError, osErrorMsg(error)))
return
if exitCode == -1:
Expand Down

0 comments on commit 36d8ee5

Please sign in to comment.