<i>[exit] doesn't wait for background flushes of close channels</i> status still Open with 4 other changes
by
.
D 2011-08-11T06:17:12
J icomment It\salso\sworks\s(the\sinter-test\sleakage)\sbecause\swe\sare\susing\sthe\ssame\sname\s(foo)\sfor\sthe\sTcl\shandler\sof\sall\sthese\schannels.\n\nThe\sghost\sflush\sof\sthe\schannel\s24.1\sis\sput\sinto\sthe\sevent\squeue\sof\sthe\smain\sthread,\sbecause\sthat\sis\swhere\sthe\shandler\slives.\sThen\sthe\sthread\sexits,\sthe\sevent\sis\sstill\sin\sthe\squeue.\n\nLater\sin\s25.1\sit\shas\smade\sit\sto\sthe\sfront\sof\sthe\squeue,\sand\sis\srun,\susing\sthe\schanged\shandler\sfor\s25.1\sinstead\sof\sthe\soriginal\sof\s24.1.\n\nSo,\swe\scould\sstop\sthe\sleak\sby\susing\sdifferent\sproc\snames\sfor\sthe\shandler\sas\swell.\sIn\sthat\scase\sthe\sevent\smay\scause\sa\sbgerror,\strying\sto\sbe\srun\swith\sa\snon-existent\shandler\sprocedure.\n\nI\sdo\swonder\sif\swe\scan\strack\senough\sinformation\sin\sthe\sref-channel\sthat\swhen\sit\sis\sgone\sin\sthe\sthread\sany\soutstanding\sevents\scan\sbe\scanceled,\si.e.\sby\seither\sremoving\sthem\sfrom\sthe\sevent\squeue,\sor\sjust\sfinding\sand\smarking\sthem\sas\s'deleted',\scausing\sthe\sC\slevel\sreceiver\sto\slater\sdiscard\sit\squietly\swhen\sit\scomes\sto\sthe\shead\sof\sthe\squeue.\n\nLook\sat\sForwardProc\s(tclIORchan.c),\sand\s'SrcExitProc'.\sData\sstructures\sinvolved\sare\nForwardingEvent\sand\nForwardingResult\n\nWhatever\sis\sdone\sto\sthe\sRChan\sto\shandle\sthe\ssituation,\sthe\sRTrans\smight\sneed\sequivalent\schanges.\n\n
J login andreas_kupries
J mimetype text/plain
J username andreas_kupries
K 2946474fffffffffffffffffffffffffffffffff
U andreas_kupries
Z 12c02a60ae602ae6c76c4e5a991a4988