From ff34e95bc37cb18829fd61b5d9dce6103042c472 Mon Sep 17 00:00:00 2001 From: rsc Date: Tue, 2 Mar 2004 19:27:44 +0000 Subject: [PATCH] Change pipes to preserve message boundaries. --- src/lib9/pipe.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/lib9/pipe.c b/src/lib9/pipe.c index 4caeb6c1..5d0e47c1 100644 --- a/src/lib9/pipe.c +++ b/src/lib9/pipe.c @@ -3,9 +3,8 @@ #include #include -/* 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); }