mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-05 04:27:44 +00:00
Merge pull request #639 from gradha/pr_fixes_execProcesses
Fixes execProcesses wait order. Refs #379.
This commit is contained in:
@@ -236,8 +236,8 @@ proc execProcesses*(cmds: openArray[string],
|
||||
inc(i)
|
||||
if i > high(cmds): break
|
||||
for j in 0..m-1:
|
||||
if q[j] != nil: close(q[j])
|
||||
result = max(waitForExit(q[j]), result)
|
||||
if q[j] != nil: close(q[j])
|
||||
else:
|
||||
for i in 0..high(cmds):
|
||||
var p = startCmd(cmds[i], options=options)
|
||||
|
||||
Reference in New Issue
Block a user