not-yet-connected sockets?
Daniel Walker
diwalker at earthlink.net
Sat Aug 18 11:18:23 CDT 2001
That seems to work .. Are there any other place where this POLLHUP
problem might show it's teeth?
Daniel Walker
Ove Kaaven wrote:
> Aha. Then you'd probably want something like this, then?
>
> Index: server/sock.c
> ===================================================================
> RCS file: /home/wine/wine/server/sock.c,v
> retrieving revision 1.18
> diff -u -r1.18 sock.c
> --- server/sock.c 2001/05/14 20:09:39 1.18
> +++ server/sock.c 2001/08/18 15:00:53
> @@ -84,7 +84,7 @@
>
> if (sock->obj.select == -1) {
> /* previously unconnected socket, is this reselect supposed to connect it? */
> - if (!sock->state) return;
> + if (!(sock->state & ~WS_FD_NONBLOCKING)) return;
> /* ok, it is, attach it to the wineserver's main poll loop */
> add_select_user( &sock->obj );
> }
More information about the wine-devel
mailing list