This commit is contained in:
Araq 2014-11-13 19:07:27 +01:00
commit 37cc9b2226
5 changed files with 46 additions and 33 deletions

View file

@ -495,10 +495,10 @@ when defined(Windows) and not defined(useNimRtl):
if running(p):
discard terminateProcess(p.fProcessHandle, 0)
proc kill(p: PProcess) =
proc kill(p: Process) =
terminate(p)
proc waitForExit(p: PProcess, timeout: int = -1): int =
proc waitForExit(p: Process, timeout: int = -1): int =
discard waitForSingleObject(p.fProcessHandle, timeout.int32)
var res: int32