<i>Doc: example in fileevent manpage is bad.</i> status still Open with 4 other changes
by
.
D 2008-06-16T20:38:10
J icomment Logged\sIn:\sYES\s\nuser_id=830354\nOriginator:\sYES\n\nad\sdkf:\s\shuh?\n\nThis\s"checking\seof\sonly\safter\sreading"\sis\sappropriate\sfor\s\nwhile\sloops,\swhere\sit's\susually\sthe\sreading\scommand\sthat\ncauses\sthe\seof\sto\sbe\sreached\sin\sthe\sfirst\splace.\n\nfileevent-callbacks\sare\salso\sfired\swhen\sprevious\sgets\s\nreturned\swith\sno\seof-condition,\sbut\sthe\schannel\sdied\s\nafterwards\son\speer's\sbehalf.\sAt\sthat\spoint,\sthe\seof-\nstatus\sfor\sthe\schannel\sis\salready\sset\son\sentry\sof\sthe\nhandler,\sso\sno\s*need*\sto\stry\sa\s"gets",\sfirst.\n\nOf\scourse,\syou\scan\sput\sanother\seof-check\safter\sthe\sgets\nbut\sthat's\sredundant,\sbecause\sif\seof\soccurred\sthrough\n"gets",\sthen\sthe\shandler\sis\simmediately\scalled\sagain,\nanyway,\sand\sthat\stime\seof\sis\strue\salready.\n\nFinally,\sif\sit's\sa\swriteable\sevent,\s\sreading\sisn't\sa\s\ngood\sidea\seither,\snor\sis\strying\sto\s"puts"\ssomething,\nwhen\seof\swas\salready\strue\sbefore.\n\n\n
J login avl42
J mimetype text/plain
J username avl42
K 1995063fffffffffffffffffffffffffffffffff
U avl42
Z 88c2cbdb156771dcd44b49e3116f09f0