Lines Matching refs:sigfd
212 static struct fd_pair sigfd; variable
323 if (write(sigfd.wr, &ch, 1) != 1) dbg("can't send signal\n"); in signal_handler()
329 if (pipe((int *)&sigfd) < 0) { in setup_signal()
333 fcntl(sigfd.wr , F_SETFD, FD_CLOEXEC); in setup_signal()
334 fcntl(sigfd.rd , F_SETFD, FD_CLOEXEC); in setup_signal()
335 int flags = fcntl(sigfd.wr, F_GETFL); in setup_signal()
336 fcntl(sigfd.wr, F_SETFL, flags | O_NONBLOCK); in setup_signal()
1121 FD_SET(sigfd.rd, &rfds); in dhcpd_main()
1128 int maxfd = (sigfd.rd > gstate.listensock)? sigfd.rd : gstate.listensock; in dhcpd_main()
1148 if (FD_ISSET(sigfd.rd, &rfds)) { // Some Activity on RDFDs : is signal in dhcpd_main()
1150 if (read(sigfd.rd, &sig, 1) != 1) { in dhcpd_main()