Re: select() efficiency / epoll

Davy Durham
2005-08-24T01:38:35Z

Jari Sundell wrote:

>On 8/23/05, Davy Durham <pubaddr2@davyandbeth.com> wrote:
>
>
>
>I was hoping you would mention in your reply that you knew
>epoll_data_t was an union and you didn't touch epoll_data::fd, so i
>wouldn't have to say it explicitly. ;)
>
>
>
Oh!.. unless the epoll_data_t is a union just for convenience in that it
already has an 'int fd' if you want to use that, but don't have to..
that at least makes the void *ptr, useful.. The example in 'man epoll'
sorta made it look necessary to set the 'fd' of the union.

But that still doesn't fix the issue of course.. but good to know.