From 1a8d1e10400b117a6a0a75d7991768d14597b863 Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Sat, 16 Jan 2010 10:22:58 +0000 Subject: [PATCH] * fhandler_socket.cc (fhandler_socket::accept4): Reset async flag on accepted socket. --- winsup/cygwin/ChangeLog | 5 +++++ winsup/cygwin/fhandler_socket.cc | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 86bdcab61..7ffafce04 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,8 @@ +2010-01-15 Corinna Vinschen + + * fhandler_socket.cc (fhandler_socket::accept4): Reset async flag + on accepted socket. + 2010-01-15 Pierre A. Humblet * fhandler_socket.cc (fhandler_socket::accept4): Set nonblocking diff --git a/winsup/cygwin/fhandler_socket.cc b/winsup/cygwin/fhandler_socket.cc index 1526c084e..6f6ab31d2 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 ());