Set status to something else than 0

This commit is contained in:
modk
2015-01-27 22:39:24 +01:00
parent 71ad822833
commit e37e997868

View File

@@ -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