mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-06 13:07:48 +00:00
make status variable local
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user