Menu

#210 Rederecting output of process to a file in twapi

Unscheduled
open
nobody
None
Bug
5
2022-08-02
2022-08-02
No

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?

Discussion

Anonymous
Anonymous

Add attachments
Cancel