Searched refs:log_fd (Results 1 – 2 of 2) sorted by relevance
264 static int log_fd = -1; in message() local266 if (log_fd < 0) { in message()267 log_fd = STDERR_FILENO; in message()269 log_fd = device_open(G.log_console, O_WRONLY | O_NONBLOCK | O_NOCTTY); in message()270 if (log_fd < 0) { in message()274 close_on_exec_on(log_fd); in message()278 full_write(log_fd, msg, l); in message()279 if (log_fd == STDERR_FILENO) in message()
264 int log_fd; member325 if (G.log_fd >= 0) in progress_meter()1628 G.log_fd = -1; in wget_main()1632 G.log_fd = xopen(G.fname_log, O_WRONLY | O_CREAT | O_TRUNC); in wget_main()1634 xdup2(G.log_fd, STDERR_FILENO); in wget_main()1644 if (G.log_fd >= 0) in wget_main()1645 xclose(G.log_fd); in wget_main()