diff options
author | rsc <devnull@localhost> | 2004-03-02 19:27:44 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2004-03-02 19:27:44 +0000 |
commit | ff34e95bc37cb18829fd61b5d9dce6103042c472 (patch) | |
tree | fa084931e333decf466996259da64f5c69af5e8b /src/lib9 | |
parent | 05b7f431f01dad68d31b4681a5583a0c3de2921a (diff) | |
download | plan9port-ff34e95bc37cb18829fd61b5d9dce6103042c472.tar.gz plan9port-ff34e95bc37cb18829fd61b5d9dce6103042c472.tar.bz2 plan9port-ff34e95bc37cb18829fd61b5d9dce6103042c472.zip |
Change pipes to preserve message boundaries.
Diffstat (limited to 'src/lib9')
-rw-r--r-- | src/lib9/pipe.c | 3 |
1 files changed, 1 insertions, 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 <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); } |