Skip to content
Tcl Source Code Artifact [15e57686be]
Login

Artifact [15e57686be]

Artifact 15e57686be89e58f68f38b4f2367fdf33a8936d0:

Ticket change [15e57686be] - New ticket [218076ffffffffff|218076ffff] <i>GetInput() doesn&#39;t allow for result=EINTR</i>. by nobody on 2000-10-26 00:52:54.
D 2000-10-26T00:52:54
J assignee nobody
J cmimetype text/plain
J comment OriginalBugID:\s1631\sBug\nVersion:\s8.0.3\nSubmitDate:\s'1999-03-25'\nLastModified:\s'2000-10-25'\nSeverity:\sSER\nStatus:\sClosed\nSubmitter:\spat\nOS:\sHP-UX\nOSVersion:\s10.2\nMachine:\sOther\nFixedDate:\s'2000-10-25'\nFixedInVersion:\sNA\nClosedDate:\s'1999-04-19'\n\n\nName:\n\nWilli\sLohmann\n\n\nCVS:\n\ntclIO.c\s1.244\s96/11/12\s14:47:28\n\n\nExtensions:\n\nnone\n\n\nCustomShell:\n\nHave\sredefined\sthe\sfollowing\sto\sadd\sa\scouple\sof\sargs\s(they\sjust\scall\sthe\sreal\sversion\safter\schecking\sfor\sthe\sadditional\sargs\s-\sno\sactual\snew\sfunctionality):\n\n\nReproducibleScript:\n\n\s\s\s\sReproducing\sthis\sis\shit\sor\smiss.\s\sI\shave\sapplications\n\n\s\s\s\sthat\sseemingly\sdo\sthe\ssame\sthing,\sbut\sone\sworks\sand\sone\n\n\s\s\s\sfails.\s\sIts\sextremely\sdependent\son\sthe\suser's\sos\senvironment\n\n\s\s\s\sand\show\smany\sinterrupts\sare\soccuring.\s\sSorry\s(but\sI\shave\n\n\s\s\s\sthe\sfix).\n\n\nObservedBehavior:\n\n\s\s\s\sWithin\sGetInput's\swhile\s(1)\sloop,\sone\sof\sthe\spossible\sread\serrno\svalues\n\n\s\s\s\sis\sEINTR.\s\sThis\smeans\ssome\ssystem\sinterrupt\sinterrupted\sthe\sio\n\n\s\s\s\soperation.\n\n\s\s\s\sNothing\sbad\shappened\sand\sthe\sio\sneeds\sto\sbe\scontinued.\s\sBut\sits\n\n\s\s\s\scurrently\n\n\s\s\s\sbeing\streated\sas\sa\shard\sio\serror.\n\n\n\s\s\s\sWhen\srunning\swith\sa\slot\sof\sinterrupts\s(like\sitimers\sto\sdo\sui\supdates)\n\n\s\s\s\sthis\n\n\s\s\s\shappens\sall\sthe\stime\son\ssome\sos's\s(like\shpux)\swhen\sa\stcl\sexec\scommand\sis\n\n\s\s\s\sexecuted\sand\sreturn\sdata\sis\sbeing\sread.\s\sI\shave\sheard\sfrom\ssomeone\swho\n\n\s\s\s\shas\n\n\s\s\s\sseen\sthis\son\ssolaris\salso.\n\n\nDesiredBehavior:\n\n\s\s\s\sI\swant\sto\ssee\sexec\snot\sreturn\sa\s"interrupted\ssystem\scall"\serror.\n\n\nPatch:\n\nSimply\schanging\sthis\sline\sin\sGetInput():\n\n\nif\s((result\s==\sEWOULDBLOCK)\s||\s(result\s==\sEAGAIN))\s{\n\n\nto\n\n\nif\s((result\s==\sEWOULDBLOCK)\s||\s(result\s==\sEAGAIN)\s||\s(result\s==\sEINTR))\s{\n\n\nseems\sto\sfix\sthe\sproblem.\n\n\nPatchFiles:\n\n\s\s\s\stckIO.c\n\n\n\n\n4/19/99\s-\sredman\s-\sNot\sa\sbug.\sThe\scode\sshould\sspecifically\sNOT\scheck\sfor\sEINTR\sto\sallow\sprograms\sto\shandle\sand\sdeal\swith\sit\scorrectly.\n\n
J foundin obsolete:\s8.0.3
J priority 5\sMedium
J resolution None
J status Open
J submitter nobody
J subsystem 69.\sOther
J title GetInput()\sdoesn't\sallow\sfor\sresult=EINTR
J type Bug
K 218076ffffffffffffffffffffffffffffffffff
U nobody
Z 96e5f27abfff9d833d8dde6211bf1fc3