Re: Kqueue queries

2007-06-12 Thread James Bailie
Cole wrote: > If I do the above, and just keep increasing number_events and > just mark the kevent as EV_DISABLED or EV_DELETE then all it > does is return that event as soon as I call kevent() with the > following values: ident : 7, filter : -1, flags : 16384 That flags value is EV_ERROR. It

Re: Kqueue queries

2007-06-12 Thread James Bailie
Cole wrote: > I wanted to know, what must be done when the sockets/file > descriptors close. Do I need to decrease number_events and > resort the events array so that all the active kevents are > sequential without any closed sockets still in that array? It occurs to me, you might be trying to