diff options
author | Johannes Hofmann <johannes.hofmann@gmx.de> | 2016-09-25 09:51:23 +0200 |
---|---|---|
committer | Johannes Hofmann <johannes.hofmann@gmx.de> | 2016-09-25 09:51:23 +0200 |
commit | 14f72bcbac4ea5c9537aad4791681cea6f86dcc7 (patch) | |
tree | 02ea163bfccababcb5df0cb435dabb5a3f40600b | |
parent | 77109d4c7bef90f54078bfc6aa43c79e02ba0c2c (diff) | |
download | Nim-14f72bcbac4ea5c9537aad4791681cea6f86dcc7.tar.gz |
make status variable local
-rw-r--r-- | lib/pure/osproc.nim | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/pure/osproc.nim b/lib/pure/osproc.nim index ac8fa7a14..bd0f122f3 100644 --- a/lib/pure/osproc.nim +++ b/lib/pure/osproc.nim @@ -1035,12 +1035,11 @@ elif not defined(useNimRtl): const hasThreadSupport = compileOption("threads") and not defined(nimscript) - var status : cint = 1 - proc waitForExit(p: Process, timeout: int = -1): int = template adjustTimeout(t, s, e: Timespec) = var diff: int var b: Timespec + var status : cint = 1 b.tv_sec = e.tv_sec b.tv_nsec = e.tv_nsec e.tv_sec = (e.tv_sec - s.tv_sec).Time |