Lines Matching refs:notify_pipe
108 static int notify_pipe[2]; variable
112 if (pipe(notify_pipe) < 0) { in notify_setup()
114 } else if ((fcntl(notify_pipe[0], F_SETFD, FD_CLOEXEC) == -1) || in notify_setup()
115 (fcntl(notify_pipe[1], F_SETFD, FD_CLOEXEC) == -1)) { in notify_setup()
117 (void) close(notify_pipe[0]); in notify_setup()
118 (void) close(notify_pipe[1]); in notify_setup()
120 set_nonblock(notify_pipe[0]); in notify_setup()
121 set_nonblock(notify_pipe[1]); in notify_setup()
124 notify_pipe[0] = -1; /* read end */ in notify_setup()
125 notify_pipe[1] = -1; /* write end */ in notify_setup()
130 if (notify_pipe[1] != -1) in notify_parent()
131 (void) write(notify_pipe[1], "", 1); in notify_parent()
136 if (notify_pipe[0] != -1) in notify_prepare()
137 FD_SET(notify_pipe[0], readset); in notify_prepare()
144 if (notify_pipe[0] != -1 && FD_ISSET(notify_pipe[0], readset)) in notify_done()
145 while (read(notify_pipe[0], &c, 1) != -1) in notify_done()
648 max_fd = MAX(max_fd, notify_pipe[0]); in server_loop()
888 max_fd = MAX(max_fd, notify_pipe[0]); in aps_monitor_loop()
942 max_fd = MAX(max_fd, notify_pipe[0]); in server_loop2()