D 2018-11-12T08:51:44.607
J icomment Hmm...\sNever\ssaw\sthis\susing\stcl\sfor\swin\s(in\stcl-shell\sas\swell\sas\sin\sown\sbinaries\sas\slibrary\sand\seven\sstatic\slinked).\r\nFurthermore\salthough\sI\scan\simagine\sthe\ssituation\slike\sthis\s(theoretically),\sI\sdon't\sunderstand\show\sthe\ssuggested\ssolution\scan\sfix\sthat\s(excepting\sthe\scase\swhere\sstandard\shandles\sare\smodified\swithout\snotifying\stcl\sabout\sthat).\r\n\r\nIf\sthe\sstandard\shandle\sis\saltered\s(closed,\sreopened,\swhatever),\sis\sthe\sduplication\sof\sthis\s(for\sexample\sclosed)\shandle\sdoes\snot\scause\sthe\ssame\serror?\r\n\r\nOr\sstill\sanother\squestion\s-\sif\sthe\saltering\stakes\splace\shereafter\s(e.g.\safter\sinitial\scall\sof\s<code>Tcl_GetStdChannel</code>),\sit\sis\sexpected\sat\sall\sthat\sthe\swrite/read\swill\sbe\sdone\susing\s"old"\s(unmodified)\sstandard\shandles?\r\n\r\nIt\slooks\slike\sa\s3rd\sparty\sissue\sto\sme\s-\sthe\sOCCT\s(or\sdependencies)\sshould\ssimply\scall\s<code>Tcl_SetStdChannel</code>\sif\sit\sdoes\schange\sthe\sstandard\shandles.\r\nOr\seven\susing\spair\sTcl_Close/Tcl_CreateChannel\sfor\sstandard\shandles.\r\nSee\s[https://www.tcl.tk/man/tcl8.6/TclLib/GetStdChan.htm|Tcl_GetStdChannel\smanual\spage\s-\sTcl\sLibrary\sProcedures]\sfor\smore\sinfo.\r\n\r\nTherefore\sthe\sduplication\sas\sdescribed\sas\spossible\ssolution\sis\srather\sa\sworkaround,\sand\smay\sproduce\sunexpected\sbehavior\sresp.\scause\sstrange\seffects\son\sother\ssoftware\s(especially\smulti-threaded)\sthat\suses\scorrectly\srewrite\sor\sclose\shandling\sof\sthe\sstandard\schannels.
J login sebres
J mimetype text/x-fossil-wiki
J resolution Invalid
J status Pending
K 91c9bc1c457fda269ae18595944fc3c2b54d961d
U sebres
Z d129890048e50175a4207b54faea02f0