.
D 2002-12-13T11:54:58
J assignee andreas_kupries
J cmimetype text/plain
J comment \nIf\sthere\sis\spending\sBG\soutput\sfor\sa\snon-blocking\schannel\s\nthen\sTcl_DriverCloseProc()\sis\snot\scalled\swhen\sthe\s'close'\s\ncommand\sis\sinvoked.\n\nThat\scan\sbe\sseen\sfrom\sgeneric/tclIO.c\s:\s\nTcl_Unregister_Channel():\n\s\s\s\sif\s(!(statePtr->flags\s&\sBG_FLUSH_SCHEDULED))\s{\n\s\s\s\s\s\s\s\s...\n\nThis\scan\sbe\svery\sbad\sif\schannel's\soutput\sis\sstalled,\se.g.\sa\s\nserial\sport\sblocked\sby\shandshake:\n\n%\sputs\s"Tcl\s$tcl_patchLevel"\nTcl\s8.4b1\n%\sset\schan\s[open\scom1:\sr+]\nfileaaf550\n%\sfconfigure\s$chan\s-buffering\snone\s-blocking\s0\n%\sfconfigure\s$chan\s-mode\s1200,n,8,1\s-handshake\srtscts\n%\s###\s2\soutputs:\s"hello\sworld"\s\\x0D\\x0A,\sBG_FLUSH\n%\sputs\s$chan\s"hello\sworld"\n%\sputs\s"Queue:\s[fconfigure\s$chan\s-queue]"\nQueue:\s0\s13\n%\safter\s1000\n%\sputs\s"Queue:\s[fconfigure\s$chan\s-queue]"\nQueue:\s0\s13\n%\sclose\s$chan\n%\sset\schan\s[open\scom1:\sr+]\ncouldn't\sopen\s"com1:":\spermission\sdenied\n%\s\n\nThis\sproblem\soccurs\salso\sfor\sslow\soutput\swithout\s\nhandshake:\n\n%\sputs\s"Tcl\s$tcl_patchLevel"\nTcl\s8.4b1\n%\sset\schan\s[open\scom1:\sr+]\nfileaaf768\n%\sfconfigure\s$chan\s-buffering\snone\s-blocking\s0\n%\s#\sExplicitely\sreset\shandshake=none\n%\sfconfigure\s$chan\s-mode\s1200,n,8,1\s-handshake\snone\n%\sputs\s$chan\s"hello\sworld"\n%\sputs\s$chan\s"hello\sworld"\n%\sclose\s$chan\n%\sset\schan\s[open\scom1:\sr+]\ncouldn't\sopen\s"com1:":\spermission\sdenied\n\n\nFor\sTcl\s<\s8.4.\sthis\shas\snever\sbeen\sobserved\sfor\sserial\s\nports,\sbecause\sserial\soutput\shas\salready\sbeen\sblocking.\n
J foundin obsolete:\s8.4.1
J priority 5\sMedium
J resolution None
J status Open
J submitter schroedter
J subsystem 25.\sChannel\sSystem
J title Channels\sCloseProc()\snot\scalled\son\sclose
J type Bug
K 653218ffffffffffffffffffffffffffffffffff
U schroedter
Z 7e97df052efb4561f79bfb6c7b5819ae