Skip to content
Tcl Source Code Artifact [97fe1b239e]
Login

Artifact [97fe1b239e]

Artifact 97fe1b239ee1e30f633ed8e58c280f2b2bd89e3a:

Ticket change [97fe1b239e] - New ticket [439114ffffffffff|439114ffff] <i>Channel buffering affects [close] status</i>. by chris_nelson on 2001-07-06 16:52:51.
D 2001-07-06T16:52:51
J assignee nobody
J cmimetype text/plain
J comment When\srunning\sa\schild\sprocess\son\sa\sopen\spipe,\sthe\sbuffering\sof\sthe\schannel\sappears\sto\saffect\sthe\s\n[catch]\sof\sthe\s[close]\sof\sthe\schannel\son\s[eof].\n\nI'll\sattach\sa\sscript\swhich\sreproduce\sthis\sproblem.\s\sA\sC\sprogram\swhich\scan\sbe\sused\sto\sdemonstrate\sit\s\nis:\n\n\s\s#include\s<stdio.h>\n\n\s\sint\smain(int\sargc,char\s**argv)\n\s\s{\n\s\s\s\s\s\sfprintf(stderr,\s"child.c\s\s\s:\sAbout\sTo\sExit\sNonZero...\\n");\n\s\s\s\s\s\sexit(33);\n\s\s}\n\nWhen\srun\sin\sTcl\s8.2,\sthe\sparent\sprocess\scorrectly\sgets\sthe\schild's\sexit\sstatus.\s\sWhen\srun\sin\sTcl,\sthe\s\nchild\sprocess\sappears\sto\salways\ssucceed.\n\n\surchin{53}hyper/v5.0.3/eofError\s>\s/usr/local/bin/tclsh8.2\n\s%\ssource\st.tcl\n\s%\sworks\n\schild.c\s\s\s:\sAbout\sTo\sExit\sNonZero...\n\s<<>>Got\sEOF\son\sfile3\n\s\s\s\s\s\s\s\s\sSet\sFioStatus\sto\s1\sfrom\scatch\sof\sclose\n\s\s\s\s\s\s\s\s\serrorCode:CHILDSTATUS\s9311\s33\n\sPtiExec(FioStatus):1\n\s%\sfails\n\schild.c\s\s\s:\sAbout\sTo\sExit\sNonZero...\n\s<<>>Got\sEOF\son\sfile3\n\s\s\s\s\s\s\s\s\sSet\sFioStatus\sto\s1\sfrom\scatch\sof\sclose\n\s\s\s\s\s\s\s\s\serrorCode:CHILDSTATUS\s9312\s33\n\sPtiExec(FioStatus):1\n\s%\surchin{54}hyper/v5.0.3/eofError\s>\s/usr/local/bin/tclsh8.4\n\s%\ssource\st.tcl\n\s%\sworks\n\schild.c\s\s\s:\sAbout\sTo\sExit\sNonZero...\n\s<<>>Got\sEOF\son\sfile3\n\s\s\s\s\s\s\s\s\sSet\sFioStatus\sto\s1\sfrom\scatch\sof\sclose\n\s\s\s\s\s\s\s\s\serrorCode:CHILDSTATUS\s9316\s33\n\sPtiExec(FioStatus):1\n\s%\sfails\n\schild.c\s\s\s:\sAbout\sTo\sExit\sNonZero...\n\s<<>>Got\sEOF\son\sfile3\n\s\s\s\s\s\s\s\sSet\sFioStatus\sto\s0\sfrom\scatch\sof\sclose\n\s\s\s\s\s\s\s\serrorCode:CHILDSTATUS\s9316\s33\n\sPtiExec(FioStatus):0\n
J foundin obsolete:\s8.4a3
J priority 5\sMedium
J resolution None
J status Open
J submitter chris_nelson
J subsystem 25.\sChannel\sSystem
J title Channel\sbuffering\saffects\s[close]\sstatus
J type Bug
K 439114ffffffffffffffffffffffffffffffffff
U chris_nelson
Z b3d486d506d9fbe977db861109dfbc79