| commit | ff34e95bc37cb18829fd61b5d9dce6103042c472 | [log] [tgz] |
|---|---|---|
| author | rsc <devnull@localhost> | Tue Mar 02 19:27:44 2004 +0000 |
| committer | rsc <devnull@localhost> | Tue Mar 02 19:27:44 2004 +0000 |
| tree | fa084931e333decf466996259da64f5c69af5e8b | |
| parent | 05b7f431f01dad68d31b4681a5583a0c3de2921a [diff] |
Change pipes to preserve message boundaries.
diff --git a/src/lib9/pipe.c b/src/lib9/pipe.c index 4caeb6c..5d0e47c 100644 --- 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); }