Lines Matching refs:notify_pipe
77 static int notify_pipe[2]; variable
89 if (notify_pipe[0] != -1) in pselect_notify_setup()
90 close(notify_pipe[0]); in pselect_notify_setup()
91 if (notify_pipe[1] != -1) in pselect_notify_setup()
92 close(notify_pipe[1]); in pselect_notify_setup()
94 if (pipe(notify_pipe) == -1) { in pselect_notify_setup()
96 } else if (pselect_notify_setup_fd(¬ify_pipe[0]) == -1 || in pselect_notify_setup()
97 pselect_notify_setup_fd(¬ify_pipe[1]) == -1) { in pselect_notify_setup()
99 close(notify_pipe[0]); in pselect_notify_setup()
100 close(notify_pipe[1]); in pselect_notify_setup()
102 set_nonblock(notify_pipe[0]); in pselect_notify_setup()
103 set_nonblock(notify_pipe[1]); in pselect_notify_setup()
106 notify_pid, notify_pipe[0], notify_pipe[1]); in pselect_notify_setup()
110 notify_pipe[0] = -1; /* read end */ in pselect_notify_setup()
111 notify_pipe[1] = -1; /* write end */ in pselect_notify_setup()
116 if (notify_pipe[1] != -1) in pselect_notify_parent()
117 (void)write(notify_pipe[1], "", 1); in pselect_notify_parent()
122 if (notify_pipe[0] != -1) in pselect_notify_prepare()
123 FD_SET(notify_pipe[0], readset); in pselect_notify_prepare()
130 if (notify_pipe[0] != -1 && FD_ISSET(notify_pipe[0], readset)) { in pselect_notify_done()
131 while (read(notify_pipe[0], &c, 1) != -1) in pselect_notify_done()
133 FD_CLR(notify_pipe[0], readset); in pselect_notify_done()
191 nfds = MAX(nfds, notify_pipe[0] + 1); in pselect()