Urgent need for advice: POLLHUP and sockets
Martin Wilck
Martin.Wilck at fujitsu-siemens.com
Thu Apr 18 02:15:34 CDT 2002
Ove,
can you comment on this line in sock_reselect:
/* previously unconnected socket, is this reselect supposed to connect it? */
if (!(sock->state & ~FD_WINE_NONBLOCKING)) return 0;
Was this a short way of expressing
if ( !(sock->state & (FD_READ|FD_WRITE|FD_OOB|FD_ACCEPT|FD_CONNECT|FD_CLOSE|
FD_WINE_LISTENING|FD_WINE_CONNECTED|FD_WINE_RAW) ))
??
Rationale: I have been adding new flags (FD_WINE_SEND_SHUTDOWN,
FD_WINE_RECV_SHUTDOWN) and my guess is they (being internal) should be
treated like FD_WINE_NONBLOCKING here, but I'm uncertain.
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