Lines Matching refs:notify_pipe
128 static int notify_pipe[2]; variable
132 if (pipe(notify_pipe) < 0) { in notify_setup()
134 } else if ((fcntl(notify_pipe[0], F_SETFD, FD_CLOEXEC) == -1) || in notify_setup()
135 (fcntl(notify_pipe[1], F_SETFD, FD_CLOEXEC) == -1)) { in notify_setup()
137 close(notify_pipe[0]); in notify_setup()
138 close(notify_pipe[1]); in notify_setup()
140 set_nonblock(notify_pipe[0]); in notify_setup()
141 set_nonblock(notify_pipe[1]); in notify_setup()
144 notify_pipe[0] = -1; /* read end */ in notify_setup()
145 notify_pipe[1] = -1; /* write end */ in notify_setup()
150 if (notify_pipe[1] != -1) in notify_parent()
151 (void)write(notify_pipe[1], "", 1); in notify_parent()
156 if (notify_pipe[0] != -1) in notify_prepare()
157 FD_SET(notify_pipe[0], readset); in notify_prepare()
164 if (notify_pipe[0] != -1 && FD_ISSET(notify_pipe[0], readset)) in notify_done()
165 while (read(notify_pipe[0], &c, 1) != -1) in notify_done()
705 max_fd = MAX(max_fd, notify_pipe[0]); in server_loop()
847 max_fd = MAX(max_fd, notify_pipe[0]); in server_loop2()