aboutsummaryrefslogtreecommitdiff
path: root/winsup/cygwin/fhandler_socket.cc
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2010-01-16 10:22:58 +0000
committerCorinna Vinschen <corinna@vinschen.de>2010-01-16 10:22:58 +0000
commit1a8d1e10400b117a6a0a75d7991768d14597b863 (patch)
treeb489e2d1866978d6aeae70b0f57537021c5d3e7b /winsup/cygwin/fhandler_socket.cc
parent2b24bd4898750523386253855ecfcce33e1b24db (diff)
downloadnewlib-1a8d1e10400b117a6a0a75d7991768d14597b863.zip
newlib-1a8d1e10400b117a6a0a75d7991768d14597b863.tar.gz
newlib-1a8d1e10400b117a6a0a75d7991768d14597b863.tar.bz2
* fhandler_socket.cc (fhandler_socket::accept4): Reset async flag
on accepted socket.
Diffstat (limited to 'winsup/cygwin/fhandler_socket.cc')
-rw-r--r--winsup/cygwin/fhandler_socket.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/fhandler_socket.cc b/winsup/cygwin/fhandler_socket.cc
index 1526c08..6f6ab31 100644
--- a/winsup/cygwin/fhandler_socket.cc
+++ b/winsup/cygwin/fhandler_socket.cc
@@ -1216,7 +1216,7 @@ fhandler_socket::accept4 (struct sockaddr *peer, int *len, int flags)
fhandler_socket *sock = (fhandler_socket *) res_fd;
sock->set_addr_family (get_addr_family ());
sock->set_socket_type (get_socket_type ());
- sock->async_io (async_io ());
+ sock->async_io (false); /* fdsock switches async mode off. */
if (get_addr_family () == AF_LOCAL)
{
sock->set_sun_path (get_sun_path ());