.
D 2000-10-26T00:53:21
J assignee nobody
J cmimetype text/plain
J comment OriginalBugID:\s1941\sBug\nVersion:\s8.0.4\nSubmitDate:\s'1999-04-27'\nLastModified:\s'2000-04-26'\nSeverity:\sSER\nStatus:\sClosed\nSubmitter:\spat\nChangedBy:\shobbs\nOS:\sSolaris\nOSVersion:\s2.6\nMachine:\sOther\nFixedDate:\s'2000-10-25'\nClosedDate:\s'2000-04-26'\n\n\nName:\n\nTethys\n\n\n\nExtensions:\n\nBLT,\sexpect\s(although\ssometimes\snone)\n\n\n\nCustomShell:\n\nApplied\sJan\sNijtman's\splus/dash\spatches.\n\n\n\nComments:\n\nI'm\salmost\s100%\ssure\smy\spatch\sis\sNOT\scorrect.\sHowever,\sit\sappears\sto\sbe\n\n\s\s\s\sa\susable\sworkaround\sfor\sthe\stime\sbeing.\sI\sdon't\sknow\senough\sabout\sTcl\n\n\s\s\s\schannel\shandling\sto\sfix\sit\sproperly.\n\n\n\nReproducibleScript:\n\nMost\sTcl\sscripts\scontaining\san\s"exec"\scommand\sthat\sreturns\sdata.\n\n\s\s\s\s\n\n\s\s\s\swish\s-f\sfoo.tcl\n\n\s\s\s\s\n\n\s\s\s\sNote\sthat\s*some*\sscripts\swork\sfine.\sOthers\s(seemingly\sat\srandom)\sfail.\n\n\s\s\s\sAn\searlier\sposting\sto\scomp.lang.tcl\spointed\sme\sto\sGetInput(),\sbut\sthe\n\n\s\s\s\srecommended\spatch\s(treating\sEINTR\sthe\ssame\sas\sEAGAIN\s/\sEWOULDBLOCK)\n\n\s\s\s\sdidn't\swork\sfor\sme.\n\n\n\nObservedBehavior:\n\nAn\serror\smessage:\n\n\s\s\s\s\n\n\s\s\s\serror\sreading\soutput\sfrom\scommand:\sinterrupted\ssystem\scall\n\n\n\nDesiredBehavior:\n\nThe\s"exec"\scommand\snot\scausing\san\serror.\sThe\ssame\sscripts\swork\sfine\swith\n\n\s\s\s\stcl7.6\n\n\n\nPatch:\n\n***\stclIO.c\s\s\s\s\sMon\sApr\s26\s13:46:35\s1999\n\n---\stclIO.c.orig\s\s\s\s\s\s\s\sThu\sApr\s22\s18:15:52\s1999\n\n***************\n\n***\s2717,2726\s****\n\n\s\s\s\s\s\s\s\s\s\s\s\s}\selse\s{\n\n\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\spanic("Blocking\schannel\sdriver\sdid\snot\sblock\son\sinput");\n\n\s\s\s\s\s\s\s\s\s\s\s\s}\n\n-\s#ifndef\sTREAT_EINTR_AS_ERROR\n\n-\s\s\s\s\s\s\s}\selse\sif\s(result\s==\sEINTR)\s{\n\n-\s\s\s\s\s\s\s\s\s\s\s\s\s\s\sresult\s=\s0;\n\n-\s#endif\s/*\sTREAT_EINTR_AS_ERROR\s*/\n\n\s\s\s\s\s\s\s\s}\selse\s{\n\n\s\s\s\s\s\s\s\s\s\s\s\sTcl_SetErrno(result);\n\n\s\s\s\s\s\s\s\s}\n\n---\s2717,2722\s----\n\n\n\nPatchFiles:\n\ntclIO.c\n\n\n\n\n\nWe\sneed\ssomething\sreproducable\sto\sgo\sany\sfurther\swith\sthis\sreport.\s\n--\s04/26/2000\shobbs
J foundin obsolete:\s8.0.4
J priority 5\sMedium
J resolution None
J status Open
J submitter nobody
J subsystem 60.\sNRE\sand\scoroutines
J title exec\scommand\sfails\swith\sEINTR
J type Bug
K 218120ffffffffffffffffffffffffffffffffff
U nobody
Z 5b7130428152f26d26784baf1808b3fa