Lines Matching refs:notify_pipe
122 static int notify_pipe[2]; variable
126 if (pipe(notify_pipe) == -1) { in notify_setup()
128 } else if ((fcntl(notify_pipe[0], F_SETFD, FD_CLOEXEC) == -1) || in notify_setup()
129 (fcntl(notify_pipe[1], F_SETFD, FD_CLOEXEC) == -1)) { in notify_setup()
131 close(notify_pipe[0]); in notify_setup()
132 close(notify_pipe[1]); in notify_setup()
134 set_nonblock(notify_pipe[0]); in notify_setup()
135 set_nonblock(notify_pipe[1]); in notify_setup()
138 notify_pipe[0] = -1; /* read end */ in notify_setup()
139 notify_pipe[1] = -1; /* write end */ in notify_setup()
144 if (notify_pipe[1] != -1) in notify_parent()
145 (void)write(notify_pipe[1], "", 1); in notify_parent()
150 if (notify_pipe[0] != -1) in notify_prepare()
151 FD_SET(notify_pipe[0], readset); in notify_prepare()
158 if (notify_pipe[0] != -1 && FD_ISSET(notify_pipe[0], readset)) in notify_done()
159 while (read(notify_pipe[0], &c, 1) != -1) in notify_done()
421 max_fd = MAXIMUM(max_fd, notify_pipe[0]); in server_loop2()