Lines Matching refs:sigfd
327 static struct fd_pair sigfd;
478 if (write(sigfd.wr, &ch, 1) != 1) dbg("can't send signal\n");
484 if (pipe((int *)&sigfd) < 0) {
488 fcntl(sigfd.wr , F_SETFD, FD_CLOEXEC);
489 fcntl(sigfd.rd , F_SETFD, FD_CLOEXEC);
490 int flags = fcntl(sigfd.wr, F_GETFL);
491 fcntl(sigfd.wr, F_SETFL, flags | O_NONBLOCK);
1676 FD_SET(sigfd.rd, &rfds);
1683 int maxfd = (sigfd.rd > gstate.listensock)? sigfd.rd : gstate.listensock;
1707 if (FD_ISSET(sigfd.rd, &rfds)) { // Some Activity on RDFDs : is signal
1709 if (read(sigfd.rd, &sig, 1) != 1) {