Set status to something else than 0
This commit is contained in:
parent
71ad822833
commit
e37e997868
1 changed files with 1 additions and 1 deletions
|
|
@ -848,7 +848,7 @@ elif not defined(useNimRtl):
|
|||
if kill(p.id, SIGCONT) != 0'i32: raiseOsError(osLastError())
|
||||
|
||||
proc running(p: Process): bool =
|
||||
var status : cint
|
||||
var status : cint = 1
|
||||
var ret = waitpid(p.id, status, WNOHANG)
|
||||
if WIFEXITED(status):
|
||||
p.exitCode = status
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue