[PATCH 01/10] server: allow polling for no events in set_fd_events

Alexandre Julliard julliard at winehq.org
Tue Apr 6 07:08:39 CDT 2010


Mike Kaplinskiy <mike.kaplinskiy at gmail.com> writes:

> Remove the fd from the poll list so we don't get POLLHUP/POLLERR
> messages when we ask for no events

This is wrong, even when selecting for no events you want to receive
POLLHUP/POLLERR. If you really don't want any events you have to use -1
to remove the fd from the loop. But in general ignoring POLLHUP/POLLERR
is a bug.

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list