* net.cc (cygwin_accept): Set sun_path for newly connected socket.
This commit is contained in:
parent
a717363576
commit
fe37dd79ec
|
@ -1,3 +1,7 @@
|
|||
2002-01-08 Corinna Vinschen <corinna@vinschen.de>
|
||||
|
||||
* net.cc (cygwin_accept): Set sun_path for newly connected socket.
|
||||
|
||||
2002-01-07 Ralf Habacker <Ralf.Habacker@freenet.de>
|
||||
|
||||
* Makefile.in: Add uninstall target.
|
||||
|
|
|
@ -1255,6 +1255,8 @@ cygwin_accept (int fd, struct sockaddr *peer, int *len)
|
|||
else
|
||||
{
|
||||
fhandler_socket* res_fh = fdsock (res_fd, sock->get_name (), res);
|
||||
if (sock->get_addr_family () == AF_LOCAL)
|
||||
res_fh->set_sun_path (sock->get_sun_path ());
|
||||
res_fh->set_addr_family (sock->get_addr_family ());
|
||||
res = res_fd;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue