mirror of
https://github.com/status-im/nim-chronos.git
synced 2025-02-10 18:26:40 +00:00
Fix, waitpid() should wait for finished process. (#566)
This commit is contained in:
parent
7c5cbf04a6
commit
36d8ee5617
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user