<i>close $pipe doesn't return non-zero exit status</i> status still Open with 6 other changes
by
.
D 2006-03-17T03:18:01
J icomment Logged\sIn:\sYES\s\nuser_id=75003\n\nI\sbelieve\sthat\sthe\sare\sactually\sseeing\sa\sbug\sin\sTcl\s8.2.1.\nIn\sNov\s29,\s1999\sJeff\sHobbs\sfixed\sa\sproblem\sin\stclUnixPipe,\napparently\sthe\sblocking\smode\sof\sthe\schannel\swas\snot\sproperly\nset\sbefore.\n\nSo,\sa\schannel\swith\s-blocking\s0\sdoes\snot\sreport\serrors.\sSee\ntclUnixPipe.c,\sPipeCloseProc.\sThis\scode\sis\spresent\sin\sTcl\n8.2.1\sas\swell,\sin\sunchanged\sform.\s8.2.1\sreported\sthe\serror\ndespite\sthis\sbecause\sof\sthe\sbad\sinformation\sit\shad\sabout\sthe\nblocking\smode\sof\sthe\spipe.\n\nTo\sget\sthe\serror\sfrom\sthe\spipe\srun\n\s\s\s\sfconfigure\s-blocking\s1\s$fd\n\s\s\s\sclose\s$fd\ninstead\sof\sjust\sa\s'close\s$fd'.\n\nI\shave\sto\sadmit\sthat\sthe\smanpage\sof\sclose\sis\swritten\spoorly\nwhen\sit\scomes\sto\sexplaining\sthe\shandling\sof\s-blocking.\sThe\nbehaviour\sis\sdescried\sin\sthe\sthe\smanpage\sof\sopen,\sin\sthe\nsection\sabout\scommand\spipelines.\n\nI\srecommend\sto\stry\sand\sfix\sthe\sdocumentation.\sThe\score\sis\nok,\sand\sthe\sexample\sscript\ssimply\sfalls\sinto\sa\strap\sfor\sthe\nunwary.\n\nI\swill\snot\smind\sif\sthis\sbug\sis\ssimply\sclosed.\sAs\sdescribed\nby\sthe\ssubmitter\sit\sis\s'Invalid'.\n
J login andreas_kupries
J mimetype text/plain
J priority 2
J resolution Invalid
J username andreas_kupries
K 219327ffffffffffffffffffffffffffffffffff
U andreas_kupries
Z c4c35dcf739ed585861aaf26369bb91c