14 Oct
2012
14 Oct
'12
10:45 p.m.
Shane Green wrote:
On 14/10/2012 6:29am, Greg Ewing wrote:
Once it has reported that a given file descriptor is ready, it *won't* report that file descriptor again until you do something with it.
Unless I have misunderstood you, the following example contradicts that:
It does indeed contradict me. It looks like this is implementation-dependent, because I distinctly remember encountering a bug once that I traced back to the fact that I wasn't servicing *all* the fds reported as ready before making another select call. Since then I've always been careful to do that, so it's possible that the behaviour has changed in the meantime and I haven't noticed. -- Greg