mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-12 11:10:07 +00:00
Change pipes to preserve message boundaries.
This commit is contained in:
parent
05b7f431f0
commit
ff34e95bc3
1 changed files with 1 additions and 2 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue