<i>iocmd.tf-24.15,16 incompatible with TIP #398</i> status still Open with 4 other changes
by
.
D 2012-05-01T04:16:33
J icomment Created\sbranch\sbug-3522560\swith\sthe\sfollowing\scomment:\n\nExplore\senforcing\sthe\s(implied)\slaw\sthat\sEAGAIN\sis\sforbidden\sfor\sa\sblocking\schannel.\sViolation\sdiscovered\sis\siocmd.tf-24.1[56]56\safter\sTIP#398.\sTurns\sdeadlock\sof\sthese\stests\sinto\sfrank\sfailures.\n\nNote\sthat\sthe\spatch\salso\sincludes\sadding\stimeouts\sto\svarious\svwaits\sin\sthe\stests.\sIndeed,\sat\sfirst\sglance\sthe\svwaits\sin\sthe\s-cleanup\spart\ssound\sfishy,\sbut\sthey\sare\sneeded\sto\savoid\sinter-test\sevent\sleaks,\sas\shas\sbeen\sseen\sbefore\s(see\sfossil\shistory\sof\sthese\stests).\sSo\sjust\stime\sout\safter\s1\ssec,\sfor\sthey\sshould\sbe\sinstantaneous.\n\nThe\sC\spart\sof\sthe\spatch\sraises\san\serror\swhen\sa\sblocking\schannel\sreturns\sEAGAIN\sor\sEWOULDBLOCK.\nThis\sis\san\sexperimental\sfeature,\sdue\sto\san\sominous\scomment\sin\sthe\scode:\n\n\s\s\s*\sThis\sused\sto\scheck\sfor\sCHANNEL_NONBLOCKING,\sand\spanic\sif\n\s\s\s*\sthe\schannel\swas\sblocking.\sHowever,\sit\sappears\sthat\ssetting\n\s\s\s*\sstdin\sto\s-blocking\s0\shas\ssome\seffect\son\sthe\sstdout\swhen\n\s\s\s*\sit's\sa\stty\schannel\s(dup'ed\sunderneath)\n\nnote\swe\sno\slonger\spanic,\sbut\sraise\sa\sproper\serror,\ssince\sit\scould\sbe\sa\ssimple\sscript\serror\sin\sa\srefchan.\nStill,\sthe\sthreat\sof\sa\spossible\sstdout\sbecoming\snonblocking\sat\sthe\sioctl\slevel,\swhile\sstill\sremaining\sblocking\sas\sseen\sby\sTcl\s(due\sto\sfd\ssharing\sand\s[fconfigure\sstdin\s-blocking\s0]),\smust\sbe\sinvestigated.\n\nPlease\stest\s!!!\n
J login ferrieux
J mimetype text/plain
J username ferrieux
K 3522560fffffffffffffffffffffffffffffffff
U ferrieux
Z f4750640afd0921a3e1c352d55426bf2