Skip to content
Tcl Source Code Artifact [0f1d688e75]
Login

Artifact [0f1d688e75]

Artifact 0f1d688e75553f3788af7b7e6f17932f457300cd:

Ticket change [0f1d688e75] - New ticket [218588ffffffffff|218588ffff] <i>application hangs on non-blocking command channel</i>. by nobody on 2000-10-26 01:02:47.
D 2000-10-26T01:02:47
J assignee nobody
J cmimetype text/plain
J comment OriginalBugID:\s1356\sBug\nVersion:\s8.0.3\nSubmitDate:\s'1999-03-02'\nLastModified:\s'1999-12-03'\nSeverity:\sCRIT\nStatus:\sReleased\nSubmitter:\spat\nChangedBy:\shobbs\nRelatedBugIDs:\s710\nOS:\sSolaris\nOSVersion:\s2.5.1\nMachine:\sOther\nFixedDate:\s'1999-12-03'\nFixedInVersion:\s8.2.3\nClosedDate:\s'2000-10-25'\n\n\nName:\sJean\sM.\sBrouwers\n\nObservedBehavior:\nAfter\sopening\sa\scommand\schannel\sand\safter\ssetting\sthe\schannel\soption\sto\snon-blocking,\sthe\sapplication\shangs,\soccasionally.\s\sIt\sturns\sout\sthat\ssystem\scall\swaitpid()\sis\sbeing\scalled\swith\sthe\soptions\sargument\sset\sto\s0\sand\snot\sWNOHANG.\n\nThe\scall\sstack\sshows\sthat\swaitpid()\sis\scalled\sfrom\nTclCleanupChildren\s(in\stclPipe.c),\swhich\sis\scalled\sby\nPipeCloseProc\s(in\stclUnixPipe.c),\nCloseChannel\s(in\stclIO.c),\nFlushChannel\s(intclIO.c),\sand\sultimately\nTcl_Close\s(in\stclIO.c)\n\nDesiredBehavior:\nTcl_Close\sshould\snot\sbe\swaiting\sfor\sany\schild\sprocesses\sto\sfinish\sif\sthe\scommand\schannel\soption\sis\snon-blocking.\n\nCloser\sinspection\sof\sthe\ssource\scode\sshows\sthat\sPipeCloseProc\sdoes\sinclude\sthe\scorrect\shandling\sof\sthis\ssituation\sif\sflag\sisNonBlocking\sof\sthe\sPipeState\sis\sset\sto\snon-zero.\s\sHowever,\sthat\sflag\sis\snever\sset\sto\sanything\selse\sthan\szero.\n\n\n\nProposed\sremedy:\s\sfunction\sPipeBlockModeProc\s(in\stclUnixPipe.c)\sshould\sset\sthe\sflag\sisNonBlcoking\scorrectly\sdepending\son\sthe\svalue\sof\sthe\smode\sargument\spassed\sin.\n---\nAdding\n\s\s\s\spsPtr->isNonBlocking\s=\s(mode\s==\sTCL_MODE_NONBLOCKING);\nbefore\sthe\sreturn\sin\sunix/tclUnixPipe.c:PipeBlockModeProc\nseems\sto\ssolve\sthe\sproblem.\s\n--\s11/29/1999\shobbs\n\n
J foundin obsolete:\s8.0.3
J priority 5\sMedium
J resolution None
J status Open
J submitter nobody
J subsystem 60.\sNRE\sand\scoroutines
J title application\shangs\son\snon-blocking\scommand\schannel
J type Bug
K 218588ffffffffffffffffffffffffffffffffff
U nobody
Z 3ad721f07f17483c542ca36894aa1b4f