Skip to content
Tcl Source Code Artifact [8fca1cad6f]
Login

Artifact [8fca1cad6f]

Artifact 8fca1cad6fef6a42cd6d8c72ee10fe00e8c5c3d6:

Ticket change [8fca1cad6f] - Ticket [525783ffffffffff|525783ffff] <i>no flush on [exit]</i> status still Open with 4 other changes by schroedter on 2002-06-24 18:08:44.
D 2002-06-24T18:08:44
J icomment Logged\sIn:\sYES\s\nuser_id=99573\n\nAs\sthe\sauthor\sof\sthe\srecent\sserial\sport\schanges\s(TIP#35)\sI'm\ssupporting\sDonal's\sproposal\sof\san\sadditional\sfconfigure\s\noption:\n\n\s\s\s\sfconfigure\s$fd\s-onclose\swait/discard\n\nThis\soption\sshould\sbe\sgeneral\sfor\s*all*\sTcl\schannels\swith\sthe\sobvious\sdefault=wait\s(or\sflush).\nPlease\snote\sthat\sthis\scannot\sbe\sdone\sby\sthe\schannel\sdriver's\s[fconfigure]\spart\sbecause\sthe\schannels\sdriver\scannot\s\neasily\sdistinguish\sbetween\sa\s"normal\sflush"\sand\sa\s"flush-on-close"\ssituation.\s\nCurrently\sTcl's\schannel\ssystem\sperforms\sa\sblocking\swrite\sbefore\sclosing/exiting\n\n\s\s\s\s-\sPut\sthe\schannel\sinto\sblocking\smode\sand\n\s\s\s\s-\sWrite\sout\sall\spending\sdata\n\nThis\sshould\sbe\savoided\sby\scalling\s[fconfigure\s$chan\s-onclose\sdiscard].\sIt's\sreally\sbad\sthat\sa\schannel\sintentionally\s\nconfigured\sby\sthe\suser\sas\snon-blocking\sbecomes\sblocking\sat\sclose.\sI\sassume\sthat\sthis\scould\salso\sbe\suseful\sfor\s\nother\schannels\s(sockets\s?).\n\nRolf.\n\n
J login schroedter
J mimetype text/plain
J username schroedter
K 525783ffffffffffffffffffffffffffffffffff
U schroedter
Z 16b6c11d9d1e4be27b0f36a64cd3455a