<i>Duplicate std* channels in different Threads</i> status still Open with 3 other changes
by
.
D 2026-10-14T19:53:36.825
J icomment You\sare\sright,\sthat\ssentence\swas\stoo\sgeneral.\sIn\swish\son\sWindows\sthe\sstandard\schannel\snames\sin\sa\snew\sthread\sare\sjust\sgiven\sto\sthe\sfirst\schannels\sopened\sthere\s(test.txt\setc.\sin\syour\sexample),\sso\sclosing\sthem\scloses\sonly\sthose\schannels.\sThe\ssentence\sapplies\sto\stclsh\s(your\ssecond\sexample):\sthere\sstdout\sof\severy\sthread\srefers\sto\sthe\ssame\sfile\sdescriptor\s1,\sso\sclosing\sstdout\sin\sone\sthread\sbreaks\sstdout\sof\sthe\smain\sthread.\n\nThat\sordinary\schannels\sbecome\sstandard\schannels\sin\sa\sthread\swithout\splatform\sstandard\schannels\sis\sstill\sthe\sbehavior\sdocumented\sin\sTcl_StandardChannels(3).\sNot\sdoing\sthat\sin\sthreads\sother\sthan\sthe\smain\sthread\swould\sbe\sa\schange\sof\sthat\sbehavior,\swhich\sneeds\sa\sdecision.
J login serhiy.storchaka
J mimetype text/x-fossil-wiki
K e8efa378a96bca5e69e00e5feff1315c932ed47b
U serhiy.storchaka
Z d14fe6c452b0c73416dcc8b95d671295