.
D 2012-12-10T22:06:51
J assignee ferrieux
J closedate 2012-12-10T15:06:51
J closer ferrieux
J icomment The\sreason\sis\sa\ssubtle\sdance\sbetween\schannel\srefcounts,\sand\sper-interp\nvs.\sglobal\sresponsibility,\smade\seven\smore\scomplex\sby\sthe\sspecial\scase\nof\sstandard\schannels\s(though\sregular\schannels\shave\sthe\ssame\sproblem).\nThe\sbottom\sline\sis\sthat\sCloseChannel\s(not\sto\sbe\sconfused\swith\nTcl_Close,\snor\sChanClose,\snor\swith\sthe\schannel's\scloseProc...\sargh)\nfails\sto\sbe\scalled\sat\sexit.\n\nIn\s8.6\sthe\sissue\sgets\sa\sdifferent\slight\ssince\swe\sinsist\son\smaking\n[exit]\sas\squick\sand\sas\sdeadlock-free\sas\spossible,\sso\swe\sskip\smany\notherwise\suseless\s(if\snot\soutright\sdangerous)\sfinalizers...\samong\nwhich\sthe\sinterp's\sdeletion,\swhich\sgets\sthe\sfinal\schance\sto\scall\nCloseChannel\s(as\scan\sbe\sseen\sby\sforcing\sTCL_FINALIZE_ON_EXIT).\n\nIn\sthis\scontext,\sclosing\sthe\sissue\sas\s"Won't\sFix"\sbecause:\n\n-\soutput-eofchar-plus-exit-minus-close\shas\snever\sworked\sin\sTcl's\shistory\n\n-\sno\sexplicit\spromise\shas\sever\sbeen\smade\sin\sthe\smanpages\n\n-\seofchar\sis\sa\sDOS-only\snotion\sof\sdubious\suse\snowadays\n\n-\sfixing\sit\swould\srequire\s(a)\seither\san\soverhaul\sof\sthe\sIO\sfinalization\n\s\scode\s(b)\sor\san\sincreased\srisk\sfor\s[exit]\sto\srevive\stricky\sfinalization\sbugs\n\nNote\sthat\sI'm\ssetting\smyself\sas\sassignee,\sready\sto\slisten\sto\sarguments\sfrom\speople\swith\sa\sstrong\scase\sfor\sreopening.\n
J login ferrieux
J mimetype text/plain
J resolution Wont\sFix
J status Closed
J username ferrieux
K 3389289fffffffffffffffffffffffffffffffff
U ferrieux
Z 8e48141d83516a01327de272e8a5206b