From e37e9978689c0ae394a8fa1cd748d969f079f1a4 Mon Sep 17 00:00:00 2001 From: modk Date: Tue, 27 Jan 2015 22:39:24 +0100 Subject: [PATCH] Set status to something else than 0 --- lib/pure/osproc.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pure/osproc.nim b/lib/pure/osproc.nim index cc2dfc4cda..7261dcf562 100644 --- a/lib/pure/osproc.nim +++ b/lib/pure/osproc.nim @@ -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