What could cause sync() to hang?
for x in stage1:
spawn startStage1(x)
sync()
log("First sync() done.")
Run
proc startStage1(args: Stage1) =
log("StartProcess in Stage1: '", args.icmd, "'")
var p = startProcess(command = args.icmd, options = {poEvalCommand,
poStdErrToStdOut})
var argsx = args
argsx.sin = p.outputStream
doStage1(argsx)
log(" startStage1: p.close() ...")
p.close()
log(" startStage1: p.close() done")
Run
I see everything except "First sync() done."
This is all after `threadpool.setMaxPoolSize(1)`, and the size of the array is
`1`.
What could possibly prevent "sync()" from working. (Verified behavior with both
0.20.0 and 0.20.2.)