Home
last modified time | relevance | path

Searched refs:log_to_fd (Results 1 – 5 of 5) sorted by relevance

/external/ppp/pppd/
Dtty.c483 if (notty && log_to_fd <= 1) in tty_check_options()
484 log_to_fd = -1; in tty_check_options()
508 if (log_to_fd >= 0 && fstat(log_to_fd, &statbuf) >= 0 in tty_check_options()
510 log_to_fd = -1; in tty_check_options()
664 if (log_to_fd == 1) in connect_tty()
665 log_to_fd = -1; in connect_tty()
666 if (log_to_fd != 2) in connect_tty()
931 cpid = safe_fork(ifd, ofd, (log_to_fd >= 0? log_to_fd: 2));
940 log_to_fd = -1;
941 else if (log_to_fd >= 0)
[all …]
Dutils.c666 if (log_to_fd >= 0 && (level != LOG_DEBUG || debug)) {
671 if (write(log_to_fd, buf, n) != n
672 || write(log_to_fd, "\n", 1) != 1)
673 log_to_fd = -1;
Dmain.c802 log_to_fd = -1; in detach()
1619 if (log_to_fd > 2) in safe_fork()
1620 close(log_to_fd); in safe_fork()
1703 if (log_to_fd >= 0)
1704 errfd = log_to_fd;
1711 if (pid != 0 && log_to_fd < 0)
Doptions.c110 int log_to_fd = 1; /* send log messages to this fd too */ variable
255 { "logfd", o_int, &log_to_fd,
258 { "nolog", o_int, &log_to_fd,
261 { "nologfd", o_int, &log_to_fd,
896 if (logfile_fd >= 0 && logfile_fd != log_to_fd) in check_options()
1567 log_to_fd = fd;
Dpppd.h237 extern int log_to_fd; /* logging to this fd as well as syslog */