Skip to content
Tcl Source Code Artifact [e54f23497f]
Login

Artifact [e54f23497f]

Artifact e54f23497f7b36e3517823fcb53d22647c8a6a73:

Ticket change [e54f23497f] - New ticket [2647951fffffffff|2647951fff] <i>Error in exec ends stdin</i>. by eugene_cdn on 2009-02-28 06:56:26.
D 2009-02-28T06:56:26
J assignee nobody
J cmimetype text/plain
J comment Tcl\sversion:\s8.4+\nOS:\sLinux\sRed\sHat\s4,\s5\nMaybe,\sit\sis\sa\sLinux\sbug,\sbut\sit\sappeared\sin\sTcl's\sstdin\shandling.\sI\sgot\sthe\sproblem\sin\sC,\sbut\sI\screated\sa\sTcl\sscript\sthat\sfails\sthe\ssame\sway.\nIf\syou\sexecute\sa\scertain\scommand\sthough\ssystem()/exec\swhich\sfails,\sstdin\sstream\sdoes\snot\sprovide\sany\smore\sinput\sexcept\salready\sbuffered\sin\sC\scode.\sMy\sTcl\sscript\sis\smore\sthat\s8K\slong\sbecause\sI\sinitially\sgot\sthe\sproblem\son\sthe\svery\snext\sbyte\safter\s8K,\sbut\sattached\stest\sfails\sa\sbit\searlier.\nImportant:\sfile\smust\sbe\sredirected\sto\sstdin:\n>\stclsh\s<xxx.tcl\nRead(0)\sjust\sreturns\s0\sas\sif\sit\sis\sthe\send\sof\spipe/socket.\sIf\syou\sspecify\sfile\sname\sas\san\sargument,\sthe\sscript\sworks.\nI\scannot\sclassify\sthe\sproblem.\sJust\sweird.\sStdin\sstays\sopen,\s/proc/pid/fd\sshows\sit,\sbut\s0\shandle\sis\sdamaged.\sFork/clone\sis\sdoing\ssomething\sbad\sto\sto\sthe\sparent's\sstdin.\nAny\shelp\sis\sappreciated.\sI\scannot\sdepend\son\sany\sdeveloper\swho\scan\scall\ssystem()\sand\sbreak\sstdin.\sYes,\sI\sknow\sthat\ssuch\sredirection\sseem\sto\smake\sno\ssense,\sbut\sit\sdoes;\sit\sis\sjust\sa\ssimplified\sversion.
J foundin None
J is_private 0
J priority 5\sMedium
J resolution None
J status Open
J submitter eugene_cdn
J subsystem None
J title Error\sin\sexec\sends\sstdin
J type Bug
K 2647951fffffffffffffffffffffffffffffffff
U eugene_cdn
Z 6b16365a84dbac24e86ae587a1342980