Ove Kaaven <[EMAIL PROTECTED]> writes:

> Not really. The comment above says that it returns POLLHUP for "fresh
> not-connected" sockets (state == 0), not for "connecting" sockets, and the
> right solution would be to keep the socket out of the poll loop entirely,
> otherwise the wineserver would use 100% CPU while unconnected... but the
> irreversibility of set_select_events() doesn't let us put the socket back
> in there when we're connecting with it.

The easiest fix is to avoid the add_select_user() at socket creation
(by passing -1 as fd to alloc_object), and then have the socket code
do an add_select_user() once there is something to wait for, i.e. after
we did a connect() or listen() on this socket.

-- 
Alexandre Julliard
[EMAIL PROTECTED]

Reply via email to