aboutsummaryrefslogtreecommitdiff
path: root/src/server.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/server.c')
-rw-r--r--src/server.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server.c b/src/server.c
index ba7d916..6e8dba2 100644
--- a/src/server.c
+++ b/src/server.c
@@ -255,9 +255,9 @@ static void new_connection_cb(EV_P_ ev_io *w, int revents)
int readpipe[2]; /* child->parent */
int outpipe [2]; /* parent->child */
- if(pipe(readpipe) < 0)
+ if(socketpair(AF_UNIX, SOCK_SEQPACKET, 0, readpipe) < 0)
error("error creating pipe, need linux kernel >= 3.4");
- if(pipe(outpipe) < 0)
+ if(socketpair(AF_UNIX, SOCK_SEQPACKET, 0, outpipe) < 0)
error("error creating pipe, need linux kernel >= 3.4");
pid_t pid = fork();