From Alexandru Dadalau
This works as expected (execution stops at vwait until external process finishes):
::twapi::wait_on_handle $hproc -executeonce 1 -async [list ::meshparts::GlobalVarSetFromTwapiCallback ::meshparts::twapi_pid($pid) ""]
vwait ::meshparts::twapi_pid($pid)
By adding „-stdchannels [list $fid1 $fid2 stderr] -inherithandles 1“ execution does not stop at vwait:
::twapi::wait_on_handle $hproc -stdchannels [list $fid1 $fid2 stderr] -inherithandles 1 -executeonce 1 -async [list ::meshparts::GlobalVarSetFromTwapiCallback ::meshparts::twapi_pid($pid) ""]
vwait ::meshparts::twapi_pid($pid)
I have no clue why. Any ideas?
Anonymous