Skip to content
Tcl Source Code Artifact [52a0faef88]
Login

Artifact [52a0faef88]

Artifact 52a0faef885ec0e127e669db21de1788e74c939b:

Ticket change [52a0faef88] - New ticket [a38779bd41ef87dc|a38779bd41] <i>Tcl8,6 &#39;read&#39; doesn&#39;t notice a growing file</i>. by anonymous on 2016-07-07 10:26:20.
D 2016-07-07T10:26:20.913
J assignee nobody
J closer nobody
J cmimetype text/plain
J comment Hello\s*.\r\n\r\nWhen\sI\sam\sreading\scontinuously\sgrowing\sfile\r\n\swith\sTcl8.5\sit's\sworking\sas\sexpected\s-\r\n\sTcl\s'read'\scommand\sreturns\sall\sthe\sdata\swhich\swere\sadded\sto\sthe\sfile\r\n\s\s\safter\slast\s'read'\r\nBut\sTcl\s8.6\scalls\ssystem\sread\sjust\sonce\sin\sspite\sof\sfile\shas\sbeen\sgrown\r\n\s\sand\sa\snew\sTcl\scommand\s'read'\sissued.\r\n\r\nI\smade\son\sLinux\s(Debian\s8.5)\s\sgrowing\sfile\swith:\r\nme:~$\swhile\s:\s;\sdo\sdate\s>>nnn;\ssleep\s1;\sdone\r\n\r\nTcl\sscript:\r\nset\sf\s[open\s"nnn"\sr]\r\nwhile\s{1}\s{\r\n\s\s\s\sputs\s-nonewline\s[read\s$f]\r\n}\r\n\r\non\sTcl8.6\sit\sprints\sonly\sthe\sdata\son\sthe\sfirst\s'read'\r\n\s\s('strace'\sshows\sthat\swasn't\sany\sfurther\sattempt\sto\scall\ssystem\s'read')\r\non\sTcl8.5\sit\sprints\sall\snew\sdata\scontinuously.\r\n\r\nAm\sI\smissing\ssomething\sbasic\s?\r\n\r\nWith\sregards,\r\n\s\s\sAndrey\r\n\r\nPS:\sI\scould\sfind\sanother\ssuitable\smail\slist\spublicly\savailable\sto\swrite.
J foundin Tcl\s8.6.2,\s8.6.3
J is_private 0
J login anonymous
J priority 5\sMedium
J private_contact 14683b2e3fb45b2f30f2b420d1f9a75ff9a82c32
J resolution None
J severity Important
J status Open
J submitter anonymous
J subsystem 25.\sChannel\sSystem
J title Tcl8,6\s'read'\sdoesn't\snotice\sa\sgrowing\sfile
J type Bug
K a38779bd41ef87dc6eaf13fc20d8a29966fd3937
U anonymous
Z c8ef575bdc7e05d8f443891c275ac0fd