tChange pipes to preserve message boundaries. - plan9port - [fork] Plan 9 from user space
HTML git clone git://src.adamsgaard.dk/plan9port
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
DIR commit ff34e95bc37cb18829fd61b5d9dce6103042c472
DIR parent 05b7f431f01dad68d31b4681a5583a0c3de2921a
HTML Author: rsc <devnull@localhost>
Date: Tue, 2 Mar 2004 19:27:44 +0000
Change pipes to preserve message boundaries.
Diffstat:
M src/lib9/pipe.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
---
DIR diff --git a/src/lib9/pipe.c b/src/lib9/pipe.c
t@@ -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);
}