Change pipes to preserve message boundaries.
This commit is contained in:
parent
05b7f431f0
commit
ff34e95bc3
@ -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);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user