Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2010-01-16 00:34:27 +0300
committerCorinna Vinschen <corinna@vinschen.de>2010-01-16 00:34:27 +0300
commit9d5bf1b13cd23d6ade893195e81a58f1b4dcadb7 (patch)
treecf002cf0144cf1d69b511a7db0b883d41d064e80 /winsup/cygwin/fhandler_socket.cc
parentbe0ca195b9da3cbe721f14c58df852847d4f4caf (diff)
* fhandler_socket.cc (fhandler_socket::accept4): Set nonblocking
flag exactly according to flags, as on Linux. * net.cc (cygwin_accept): Maintain BSD semantics here.
Diffstat (limited to 'winsup/cygwin/fhandler_socket.cc')
-rw-r--r--winsup/cygwin/fhandler_socket.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/winsup/cygwin/fhandler_socket.cc b/winsup/cygwin/fhandler_socket.cc
index b5201939d..1526c084e 100644
--- a/winsup/cygwin/fhandler_socket.cc
+++ b/winsup/cygwin/fhandler_socket.cc
@@ -1236,8 +1236,7 @@ fhandler_socket::accept4 (struct sockaddr *peer, int *len, int flags)
}
}
}
- sock->set_nonblocking (flags & SOCK_NONBLOCK
- ? true : is_nonblocking ());
+ sock->set_nonblocking (flags & SOCK_NONBLOCK);
if (flags & SOCK_CLOEXEC)
sock->set_close_on_exec (true);
/* No locking necessary at this point. */