Skip to content
Tcl Source Code Artifact [7a204dae86]
Login

Artifact [7a204dae86]

Artifact 7a204dae867ea314f75bcefdb978fb420d67bed1:

Ticket change [7a204dae86] - New ticket [219121ffffffffff|219121ffff] <i>fcopy alters blocking state</i>. by nobody on 2000-10-26 01:11:05.
D 2000-10-26T01:11:05
J assignee nobody
J cmimetype text/plain
J comment OriginalBugID:\s6261\sBug\nVersion:\s8.3.2\nSubmitDate:\s'2000-09-13'\nLastModified:\s'2000-09-27'\nSeverity:\sSER\nStatus:\sReleased\nSubmitter:\stechsupp\nChangedBy:\shobbs\nOS:\sAll\sUnix\nMachine:\sintel\slinux\nFixedDate:\s'2000-09-27'\nFixedInVersion:\s8.4a2\nClosedDate:\s'2000-10-25'\n\n\nName:\nFustaf\sNeumann\n\nReproducibleScript:\nHi\sfolks,\s\n\nIt\slooks\sto\sme\sas\sif\sthere\sis\sa\sbug\sin\sthe\sfcopy\scommand\nin\sTcl\s8.3.2,\swhich\swas\snot\sthere\sin\s8.0.5.\sfcopy\schanges\nthe\sbuffering\sstate\sof\sa\schannel\sto\s1\sin\sthe\snew\sversion.\nThe\sscript\sbelow\sreturns\sthe\sfollowing\sresults\sfor\sdifferent\nTcl\sversions:\n\nResults\sin\sTcl\s8.0.5\n\s\sSTART:\sblocking(file3)\s0\n\s\sFCOPY:\sblocking(file3)\s0\n\s\sDONE:\sblocking(file3)\s0\s\s\s\s\s\s\s\n\nResults\sin\sTcl\s8.3.2\n\s\sSTART:\sblocking(file3)\s0\n\s\sFCOPY:\sblocking(file3)\s0\n\s\sDONE:\sblocking(file3)\s1\n\nBest\s\sregards\n-gustaf\n================================================\nproc\sstat\swhere\s{\n\s\sputs\sstderr\s"\s\s$where:\sblocking($::out)\s[fconfigure\s$::out\s-blocking]"\n}\nproc\sdone\s{args}\s{\n\s\sstat\sDONE\n\s\sclose\s$::in\n}\n\nputs\sstderr\s"Results\sin\sTcl\s$tcl_patchLevel"\nset\sout\s[open\s/dev/null\sw]\nfconfigure\s$out\s-blocking\s0\nstat\sSTART\n\nset\sin\s[open\sfcopy-bug\sr]\nfcopy\s$in\s$out\s-command\sdone\n\nstat\sFCOPY\n\ncatch\s{vwait\sforever}\n\nObservedBehavior:\nfcopy\schanges\sblocking\sstate\n\nDesiredBehavior:\nresults\sin\sTcl\s8.3.2\sshould\sbe\sthe\ssame\sas\sin\searlier\sreleases,\se.g.\sfcopy\sshould\snot\nalter\sblocking\sstate.\n\n\n\nThis\swas\sintroduced\sby\sa\spartial\sfix\s(exposing\sanother\sbug)\sin\n\n8.3.2.\s\stclIO.c:StopCopy\swas\snot\sreseting\sthe\snonBlocking\sflag\n\nwhen\sresetting\sthe\sflags\sfor\sthe\swrite\sside.\n\n\n\n\s\s\s\s\sif\s(csPtr->readPtr\s!=\scsPtr->writePtr)\s{\n\n+\s\s\s\s\s\snonBlocking\s=\s(csPtr->writeFlags\s&\sCHANNEL_NONBLOCKING);\n\n\s\s\s\s\s\s\sif\s(nonBlocking\s!=\s(outStatePtr->flags\s&\sCHANNEL_NONBLOCKING))\s{\n\n\s\n\n--\s09/27/2000\shobbs
J foundin obsolete:\s8.3.2
J priority 5\sMedium
J resolution None
J status Open
J submitter nobody
J subsystem 62.\s(unused)
J title fcopy\salters\sblocking\sstate
J type Bug
K 219121ffffffffffffffffffffffffffffffffff
U nobody
Z 61bb96775140a149764deea44e86f995