commit ff34e95bc37cb18829fd61b5d9dce6103042c472
parent 05b7f431f01dad68d31b4681a5583a0c3de2921a
Author: rsc <devnull@localhost>
Date: Tue, 2 Mar 2004 19:27:44 +0000
Change pipes to preserve message boundaries.
Diffstat:
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/lib9/pipe.c b/src/lib9/pipe.c
@@ -3,9 +3,8 @@
#include <libc.h>
#include <sys/socket.h>
-/* BUG: would like to preserve delimiters on systems that can */
int
p9pipe(int fd[2])
{
- return socketpair(AF_UNIX, SOCK_STREAM, 0, fd);
+ return socketpair(AF_UNIX, SOCK_DGRAM, 0, fd);
}