Urgent need for advice: POLLHUP and sockets
Martin Wilck
Martin.Wilck at fujitsu-siemens.com
Tue Apr 16 14:05:44 CDT 2002
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
--
Martin Wilck Phone: +49 5251 8 15113
Fujitsu Siemens Computers Fax: +49 5251 8 20409
Heinz-Nixdorf-Ring 1 mailto:Martin.Wilck at Fujitsu-Siemens.com
D-33106 Paderborn http://www.fujitsu-siemens.com/primergy
More information about the wine-devel
mailing list