.
D 2011-06-28T15:24:12
J icomment Good\s--\sthat\sfixes\sit\s!\nPlease\sadd\sa\scomment,\sbecause\sthe\swhole\ssequence\sof\scausality\sis\sutterly\scryptic\sto\sthe\sunaccustomed\seye.\nFor\sexample:\n\n(near\sthe\sgetsockopt\scacheing)\n\n/*\shere\swe\scache\sthe\sSO_ERROR\sbecause\sit\sis\sread\sdestructively\s*/\n\n(near\sthe\s"if\s(status\s!=\s0)")\n\n/*\swhen\sgetsockopt(SO_ERROR)\shas\sreturned\s(and\scleared)\sa\snonzero\serror,\sit\salso\sclears\sthe\swritable\sstate\sof\sthe\ssocket\sin\sthe\skernel,\spreventing\sa\ssubsequent\sselect()\sfrom\sseeing\sit\sagain.\sSo\swe\spost\sthe\sfileevent\sat\sthe\sTcl\slevel,\sso\sthat\sthe\snotifier\swill\sdequeue\sit\sbefore\scalling\sselect().\sNote\sthe\scondition\sis\snecessary\sand\ssufficient:\swhen\sgetsockopt(SO_ERROR)\sreports\sa\szero,\sno\sside-effect\soccurs.\s*/\n\nReinhard,\sby\sthe\sway,\sdo\syou\shave\sproof\sof\sthat\slatest\sassertion\sholds\s?\sOr\sdies\sit\sjust\sWorks\sOn\sYour\sMachines\s?\n
J login ferrieux
J mimetype text/plain
J username ferrieux
K 3325339fffffffffffffffffffffffffffffffff
U ferrieux
Z 2035451caf4c3b457d7373922f4a2807