diff options
Diffstat (limited to 'winsup/cygwin/net.cc')
-rw-r--r-- | winsup/cygwin/net.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/winsup/cygwin/net.cc b/winsup/cygwin/net.cc index 98e121c5a..472e97c3e 100644 --- a/winsup/cygwin/net.cc +++ b/winsup/cygwin/net.cc @@ -2198,6 +2198,8 @@ socketpair (int family, int type, int protocol, int *sb) ((fhandler_socket *) sb0)->set_addr_family (family); ((fhandler_socket *) sb0)->set_socket_type (type); ((fhandler_socket *) sb0)->connect_state (connected); + if (family == AF_LOCAL && type == SOCK_STREAM) + ((fhandler_socket *) sb0)->set_socketpair_eids (); cygheap_fdnew sb1 (sb0, false); @@ -2207,6 +2209,8 @@ socketpair (int family, int type, int protocol, int *sb) ((fhandler_socket *) sb1)->set_addr_family (family); ((fhandler_socket *) sb1)->set_socket_type (type); ((fhandler_socket *) sb1)->connect_state (connected); + if (family == AF_LOCAL && type == SOCK_STREAM) + ((fhandler_socket *) sb1)->set_socketpair_eids (); sb[0] = sb0; sb[1] = sb1; |