Lines Matching refs:notify_pipe
121 static int notify_pipe[2]; variable
125 if (pipe(notify_pipe) < 0) { in notify_setup()
127 } else if ((fcntl(notify_pipe[0], F_SETFD, FD_CLOEXEC) == -1) || in notify_setup()
128 (fcntl(notify_pipe[1], F_SETFD, FD_CLOEXEC) == -1)) { in notify_setup()
130 close(notify_pipe[0]); in notify_setup()
131 close(notify_pipe[1]); in notify_setup()
133 set_nonblock(notify_pipe[0]); in notify_setup()
134 set_nonblock(notify_pipe[1]); in notify_setup()
137 notify_pipe[0] = -1; /* read end */ in notify_setup()
138 notify_pipe[1] = -1; /* write end */ in notify_setup()
143 if (notify_pipe[1] != -1) in notify_parent()
144 (void)write(notify_pipe[1], "", 1); in notify_parent()
149 if (notify_pipe[0] != -1) in notify_prepare()
150 FD_SET(notify_pipe[0], readset); in notify_prepare()
157 if (notify_pipe[0] != -1 && FD_ISSET(notify_pipe[0], readset)) in notify_done()
158 while (read(notify_pipe[0], &c, 1) != -1) in notify_done()
402 max_fd = MAXIMUM(max_fd, notify_pipe[0]); in server_loop2()