Home
last modified time | relevance | path

Searched refs:signal_pipe (Results 1 – 4 of 4) sorted by relevance

/external/dhcpcd/
Dsignals.c40 static int signal_pipe[2]; variable
56 if (write(signal_pipe[1], &sig, sizeof(sig)) != sizeof(sig)) in signal_handler()
73 bytes = read(signal_pipe[0], buf, sizeof(buf)); in signal_read()
84 if (pipe(signal_pipe) == -1) in signal_init()
87 if (set_nonblock(signal_pipe[0]) == -1) in signal_init()
90 if (set_cloexec(signal_pipe[0]) == -1) in signal_init()
92 if (set_cloexec(signal_pipe[1]) == -1) in signal_init()
94 return signal_pipe[0]; in signal_init()
/external/dropbear/
Dcommon-session.c64 if (pipe(ses.signal_pipe) < 0) { in common_session_init()
67 setnonblocking(ses.signal_pipe[0]); in common_session_init()
68 setnonblocking(ses.signal_pipe[1]); in common_session_init()
143 FD_SET(ses.signal_pipe[0], &readfd); in session_loop()
171 if (FD_ISSET(ses.signal_pipe[0], &readfd)) { in session_loop()
173 while (read(ses.signal_pipe[0], &x, 1) > 0) {} in session_loop()
Dsession.h126 int signal_pipe[2]; /* stores endpoints of a self-pipe used for member
Dsvr-chansession.c131 if (write(ses.signal_pipe[1], &ses.isserver, 1) == 1 in sesssigchild_handler()