Lines Matching defs:syslog_fd
65 static int syslog_fd = -1;
125 syslog_fd = safe_close(syslog_fd);
159 if (syslog_fd >= 0)
162 syslog_fd = create_log_socket(SOCK_DGRAM);
163 if (syslog_fd < 0) {
164 r = syslog_fd;
168 if (connect(syslog_fd, &sa.sa, offsetof(struct sockaddr_un, sun_path) + strlen(sa.un.sun_path)) < 0) {
169 safe_close(syslog_fd);
174 syslog_fd = create_log_socket(SOCK_STREAM);
175 if (syslog_fd < 0) {
176 r = syslog_fd;
180 if (connect(syslog_fd, &sa.sa, offsetof(struct sockaddr_un, sun_path) + strlen(sa.un.sun_path)) < 0) {
314 console_fd = kmsg_fd = syslog_fd = journal_fd = -1;
408 if (syslog_fd < 0)
436 n = sendmsg(syslog_fd, &msghdr, MSG_NOSIGNAL);
1078 return syslog_fd < 0 && kmsg_fd < 0 && journal_fd < 0;