fixes #1181
This commit is contained in:
parent
06a4ab54aa
commit
37cc9b2226
5 changed files with 46 additions and 33 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue