On Tue, 16 Apr 2002, Michael Cardenas wrote:
Could you use the set_select_events to say that you don't want any more POLLHUP events?
No you can't - that's how poll() works (at least on Linux).
<man poll> int poll(struct pollfd *ufds, unsigned int nfds, int timeout);
[...]
The field revents is an output parameter, filled by the kernel with the events that actually occurred, either of the type requested, or of one of the types POLLERR or POLLHUP or POLLNVAL. (These three bits are meaningless in the events field, and will be set in the revents field whenever the corresponding condition is true.) </man poll>
Martin