Il 26/09/2012 00:01, Anthony Liguori ha scritto: > > + revents = node->pfd.revents & node->pfd.events; > > + node->pfd.revents &= ~revents; > > This is interesting and I must admit I don't understand why it's > necessary. What case are you trying to handle?
That's for the case where you got a write event for fd Y, but disabled the write handler from the handler of fd X (called before fd Y). But what the current code does is just eat the event, so I can do the same and set node->pfd.revents to 0. Paolo