Skip to content
Tcl Source Code Artifact [fc4481e15a]
Login

Artifact [fc4481e15a]

Artifact fc4481e15a5a890c74a44098c573f2ee269997b7:

Ticket change [fc4481e15a] - Ticket [2458202fffffffff|2458202fff] <i>Reflected channel crash on exit</i> status still Open with 4 other changes by andreas_kupries on 2009-01-22 05:59:50.
D 2009-01-22T05:59:50
J icomment Ah\s..\ssubmitted\sto\searly.\n\nWhile\sthe\schange\sdoes\sindeed\sfix\sour\sproblem\sit\sis\snot\sclear\syet\sif\sthat\sis\sactually\sthe\scorrect\sthing\sto\sdo.\n\nFirst,\sthe\sreflections\s(transform\stoo),\scurrently\sassume\sthat\s'interp\s==\sNULL'\smeans\s'TclFinalizeIOSystem'.\sAnd\sindeed\sthat\sis\sthe\sonly\splace\sin\sthe\score\swhere\sinterp\s==\sNULL\sis\sused.\n\nReading\sthe\sOpenFileChnl.3\smanpage\sthe\sdescription\sof\sTcl_Close\scontains\n\n\s\s\s\sIf\sthe\schannel\sis\sbeing\sclosed\ssynchronously\sand\san\serror\soccurs\sduring\n\s\s\s\sclosing\sof\sthe\schannel\sand\sinterp\sis\snot\sNULL,\san\serror\smessage\sis\sleft\sin\n\s\s\s\sthe\sinterpreter's\sresult.\n\nThis\sseems\sto\simply\sthat\sTcl_Close\sis\sallowed\sto\sbe\scalled\swith\sinterp\s==\sNULL\sfrom\sthe\soutside,\si.e.\spackages,\sand\sthat\sthis\sjust\smeans\s'I\sdo\snot\swish\sto\ssee\serror\smessages'.\nThe\scomments\sin\sthe\scode\s(i.e.\stclIO.c,\sdefinition\sof\sTcl_Close()),\showever\sdo\snot\smention\sthat\sthe\sinterp\sargument\sis\sallowed\sto\sbe\sNULL.\n\nIf\swe\sassume\sthat\sthe\smanpage\shas\spriority\sthen\sthe\scorrect\sfix\sis\snot\sto\schange\sTk,\sbut\sthe\simplementation\sof\sthe\sreflections,\si.e.\suse\sa\sdifferent\sway\sof\sdetecting\swhen\sReflectClose()\sis\scalled\sfrom\sthe\sTclFinalizeIOSystem().\n\nMaybe\sthe\schannel\sflags\sallow\sus\sto\stell\sthis\s?\nHm.\sTclInThreadExit()\sseems\sto\sbe\sclosest.\n
J login andreas_kupries
J mimetype text/plain
J username andreas_kupries
K 2458202fffffffffffffffffffffffffffffffff
U andreas_kupries
Z 52806d46257872a9effa615224076833