Lines Matching refs:pipe_fds
39 static int pipe_fds[2] = { -1, -1 };
57 write(pipe_fds[1], &s, sizeof(s));
61 if (pipe_fds[0] >= 0)
62 close(pipe_fds[0]);
63 if (pipe_fds[1] >= 0)
64 close(pipe_fds[1]);
66 pipe_fds[0] = pipe_fds[1] = -1;
74 assert(fd == pipe_fds[0]);
90 assert(pipe_fds[0] == -1 && pipe_fds[1] == -1);
92 if (pipe(pipe_fds) < 0) {
97 set_nonblock(pipe_fds[0]);
98 set_nonblock(pipe_fds[1]);
118 watch = p->watch_new(p, pipe_fds[0], AVAHI_WATCH_IN, watch_callback, NULL);