<i>Duplicate std* channels in different Threads</i> status still Open with 3 other changes
by
.
D 2026-10-14T20:05:01.178
J icomment And\sthat\sis\smy\sproblem\shere:\r\n\r\n*\sNew\schannels\sin\sother\sthreads\smay\sget\sstd*\snames.\r\n*\sThose\schannels\scan\snot\sbe\stransferred\sto\sother\sthreads.\r\n*\sRelated,\sbut\smaybe\sa\sdifferent\sbug:\sclosing\sstd*\schannels\scloses\sthe\sunderlying\sfd/handle,\sbut\sleaves\sthe\schannel\shanging.\r\n\r\nThis\sresults\sin:\r\n\r\n*\sExtra\scode\smay\sbe\sneeded\sto\s"occupy"\sthe\schannel\snames\sif\sa\schannel\sshould\sbe\screated\swith\sthe\sintention\sto\stransfer\sit\slater.\r\n*\sComplicated\smental\smodel\saround\sstandard\schannels.\r\n\r\nI\sdid\shope\sthat\sthere\swould\sbe\sa\sdiscussion\sabout\sthis,\swith\smay\sresult\sin\s(your\spick):\r\n\r\n*\sAll\sstd*\srefer\sto\sthe\ssame\sunderlying\sfd/handle,\sregardless\sif\sexecuted\son\swish/tclsh.\r\n*\sClosing\sstd*\schannels\smakes\sthem\sdisappear\sin\sall\sthreads.\r\n*\sCreating\snew\schannels\sdoes\snot\sname\sthem\sstd*\sif\san\sother\sthread\salready\shas\sa\schannel\swith\sthat\sname.\r\n\r\nor\r\n\r\n*\sChannels\screated\swith\sa\sname\slike\sstd*\sare\sshared\sacross\sall\sthreads.\r\n\r\nI\sthink\sthat\sthere\smight\sbe\ssome\simprovement\sin\sthe\sway\sTcl\shandles\sreplacing\sstd*\schannels\sand\sthreads.\r\n\r\nThe\scurrent\sbehavior\sis\sdocumented,\sbut...\sI\sam\snot\sreally\shappy\swith\sit\sas\sit\sstands.
J login JKU
J mimetype text/x-markdown
K e8efa378a96bca5e69e00e5feff1315c932ed47b
U JKU
Z 0170873fb85d0d5875dbaa016612a16c