Hack to fix the non-blocking mode. Hope I didn't miss something else... :-\

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7741 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Philippe Houdoin 2004-06-02 15:06:44 +00:00
parent 47d9175a24
commit dda70fe68a

View File

@ -1132,7 +1132,15 @@ int socket_setsockopt(struct socket *so, int level, int optnum, const void *data
so->so_options |= optnum;
else
so->so_options &= ~optnum;
if (optnum == SO_NONBLOCK) {
if (so->so_options & SO_NONBLOCK)
so->so_state |= SS_NBIO;
else
so->so_state &= ~SS_NBIO;
}
break;
case SO_SNDBUF:
case SO_RCVBUF:
case SO_SNDLOWAT: