commit
92f2fd9655
1 changed files with 4 additions and 3 deletions
|
|
@ -937,9 +937,10 @@ elif not defined(useNimRtl):
|
||||||
if p.inStream != nil: close(p.inStream)
|
if p.inStream != nil: close(p.inStream)
|
||||||
if p.outStream != nil: close(p.outStream)
|
if p.outStream != nil: close(p.outStream)
|
||||||
if p.errStream != nil: close(p.errStream)
|
if p.errStream != nil: close(p.errStream)
|
||||||
discard close(p.inHandle)
|
if poParentStreams notin p.options:
|
||||||
discard close(p.outHandle)
|
discard close(p.inHandle)
|
||||||
discard close(p.errHandle)
|
discard close(p.outHandle)
|
||||||
|
discard close(p.errHandle)
|
||||||
|
|
||||||
proc suspend(p: Process) =
|
proc suspend(p: Process) =
|
||||||
if kill(p.id, SIGSTOP) != 0'i32: raiseOsError(osLastError())
|
if kill(p.id, SIGSTOP) != 0'i32: raiseOsError(osLastError())
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue