Change pipes to preserve message boundaries.

This commit is contained in:
rsc 2004-03-02 19:27:44 +00:00
parent 05b7f431f0
commit ff34e95bc3

View file

@ -3,9 +3,8 @@
#include <libc.h> #include <libc.h>
#include <sys/socket.h> #include <sys/socket.h>
/* BUG: would like to preserve delimiters on systems that can */
int int
p9pipe(int fd[2]) p9pipe(int fd[2])
{ {
return socketpair(AF_UNIX, SOCK_STREAM, 0, fd); return socketpair(AF_UNIX, SOCK_DGRAM, 0, fd);
} }