Re: Is POLLHUP an input-only or bidirectional condition? (was: epoll reporting events when it hasn't been asked to)

Davide Libenzi
2004-04-04T01:28:40Z

On Sat, 3 Apr 2004, Jamie Lokier wrote:

> Btw, I notice epoll never reports POLLNVAL. Is that correct?

Yep, epoll does not allow you to push an invalid/unopen file descriptor
inside the set. So you get an EBADF from epoll_ctl().

- Davide