Lines Matching refs:sigfd
70 int sigfd[2];
403 if (write(TT.sigfd[1], &ch, 1) != 1) error_msg("can't send signal"); in signal_handler()
463 if (pipe(TT.sigfd) < 0) error_exit("pipe failed\n"); in syslogd_main()
465 fcntl(TT.sigfd[1] , F_SETFD, FD_CLOEXEC); in syslogd_main()
466 fcntl(TT.sigfd[0] , F_SETFD, FD_CLOEXEC); in syslogd_main()
467 int flags = fcntl(TT.sigfd[1], F_GETFL); in syslogd_main()
468 fcntl(TT.sigfd[1], F_SETFL, flags | O_NONBLOCK); in syslogd_main()
488 FD_SET(TT.sigfd[0], &rfds); in syslogd_main()
492 retval = select(TT.sigfd[0] + 1, &rfds, NULL, NULL, (TT.interval)?&tv:NULL); in syslogd_main()
497 else if (FD_ISSET(TT.sigfd[0], &rfds)) { /* May be a signal */ in syslogd_main()
500 if (read(TT.sigfd[0], &sig, 1) != 1) { in syslogd_main()