mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-01-18 04:19:21 +08:00
* fhandler_socket.cc (fhandler_socket::accept4): Reset async flag
on accepted socket.
This commit is contained in:
parent
2b24bd4898
commit
1a8d1e1040
@ -1,3 +1,8 @@
|
||||
2010-01-15 Corinna Vinschen <corinna@vinschen.de>
|
||||
|
||||
* fhandler_socket.cc (fhandler_socket::accept4): Reset async flag
|
||||
on accepted socket.
|
||||
|
||||
2010-01-15 Pierre A. Humblet <phumblet@phumblet.no-ip.org>
|
||||
|
||||
* fhandler_socket.cc (fhandler_socket::accept4): Set nonblocking
|
||||
|
@ -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 ());
|
||||
|
Loading…
x
Reference in New Issue
Block a user