<i>Channel buffering affects [close] status</i> status still Open with 4 other changes
by
.
D 2001-07-13T22:19:42
J icomment Logged\sIn:\sYES\s\nuser_id=107514\n\nOK.\s\sThe\sproblem\sseems\sto\sbe\sin\sPipeCloseProc\swhich\ssays:\n\n\s\s\s\sif\s(pipePtr->isNonBlocking\s||\sTclInExit())\s{\n\s\s\s\s\n\s\s\s\s\s\s\s\s/*\n\s\s\s\s\s\s\s\s\s*\sIf\sthe\schannel\sis\snon-blocking\sor\sTcl\sis\sbeing\scleaned\sup,\sjust\n\s\s\s\s\s\s\s\s\s*\sdetach\sthe\schildren\sPIDs,\sreap\sthem\s(important\sif\swe\sare\sin\sa\n\s\s\s\s\s\s\s\s\s*\sdynamic\sload\smodule),\sand\sdiscard\sthe\serrorFile.\n\s\s\s\s\s\s\s\s\s*/\n\s\s\s\s\s\s\s\s\n\s\s\s\s\s\s\s\sTcl_DetachPids(pipePtr->numPids,\spipePtr->pidPtr);\n\s\s\s\s\s\s\s\sTcl_ReapDetachedProcs();\n\n\s\s\s\s\s\s\s\sif\s(pipePtr->errorFile)\s{\n\s\s\s\sTclpCloseFile(pipePtr->errorFile);\n\s\s\s\s\s\s\s\s}\n\s\s\s\s}\selse\s{\n\s\s\s\s\s\s\s\s\n\s\s\s\s\s\s\s\s/*\n\s\s\s\s\s\s\s\s\s*\sWrap\sthe\serror\sfile\sinto\sa\schannel\sand\sgive\sit\sto\sthe\scleanup\n\s\s\s\s\s\s\s\s\s*\sroutine.\n\s\s\s\s\s\s\s\s\s*/\n\n\s\s\s\s\s\s\s\sif\s(pipePtr->errorFile)\s{\n\s\s\s\serrChan\s=\sTcl_MakeFileChannel(\n(ClientData)\sGetFd(pipePtr->errorFile),\sTCL_READABLE);\n\s\s\s\s\s\s\s\s}\selse\s{\n\s\s\s\s\s\s\s\s\s\s\s\serrChan\s=\sNULL;\n\s\s\s\s\s\s\s\s}\n\s\s\s\s\s\s\s\sresult\s=\sTclCleanupChildren(interp,\spipePtr->numPids,\spipePtr->pidPtr,\n\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\serrChan);\n\s\s\s\s}\n\nThe\sfirst\sclause\sisn't\sspecific\senough,\swe\sonly\swant\sto\sdiscard\sor\signore\sthe\schild's\sstatus\sif\sthe\schild\sis\sstill\s\nrunning.\s\sIf\sthe\spipe\sis\snonblocking\sBUT\sthe\schild\sis\sdone,\swe\s_can_\s(and\sshould!)\sget\sthe\schild's\sexit\sstatus.\s\nI'm\slooking\sinto\show\sto\sdetermine\sif\sthe\schild\sis\sdone\sor\snot.\n\n
J login chris_nelson
J mimetype text/plain
J username chris_nelson
K 439114ffffffffffffffffffffffffffffffffff
U chris_nelson
Z 2921515965356ec90ef161026e6ec53a