The following commit has been merged in the master branch:
commit 5fcb478d007d14227e31bbdd74d9c0b4f54908af
Author: Samuel Thibault <[email protected]>
Date: Sun Nov 27 23:40:55 2011 +0100
Fix two-way transmission for socketpair(SOCK_DGRAM)
* pflocal/socket.c (S_socket_connect2): For connection-less sockets, also
connect `user2' to `user1'.
diff --git a/pflocal/socket.c b/pflocal/socket.c
index faa9951..2684a72 100644
--- a/pflocal/socket.c
+++ b/pflocal/socket.c
@@ -37,6 +37,8 @@ S_socket_connect2 (struct sock_user *user1, struct sock_user
*user2)
return EOPNOTSUPP;
err = sock_connect (user1->sock, user2->sock);
+ if (!err && user1->sock->pipe_class->flags & PIPE_CLASS_CONNECTIONLESS)
+ err = sock_connect (user2->sock, user1->sock);
/* Since USER2 isn't in the receiver position in the rpc, we get a send
right for it (although we only use the receive right with the same
--
Debian GNU Hurd packaging