Lines Matching refs:syslog_fd
50 static int syslog_fd = -1; variable
126 syslog_fd = safe_close(syslog_fd); in log_close_syslog()
160 if (syslog_fd >= 0) in log_open_syslog()
163 syslog_fd = create_log_socket(SOCK_DGRAM); in log_open_syslog()
164 if (syslog_fd < 0) { in log_open_syslog()
165 r = syslog_fd; in log_open_syslog()
169 if (connect(syslog_fd, &sa.sa, SOCKADDR_UN_LEN(sa.un)) < 0) { in log_open_syslog()
170 safe_close(syslog_fd); in log_open_syslog()
175 syslog_fd = create_log_socket(SOCK_STREAM); in log_open_syslog()
176 if (syslog_fd < 0) { in log_open_syslog()
177 r = syslog_fd; in log_open_syslog()
181 if (connect(syslog_fd, &sa.sa, SOCKADDR_UN_LEN(sa.un)) < 0) { in log_open_syslog()
361 console_fd = kmsg_fd = syslog_fd = journal_fd = -1; in log_forget_fds()
465 if (syslog_fd < 0) in write_to_syslog()
498 n = sendmsg(syslog_fd, &msghdr, MSG_NOSIGNAL); in write_to_syslog()
1322 return syslog_fd < 0 && kmsg_fd < 0 && journal_fd < 0; in log_on_console()