Lines Matching defs:server
38 #include "journald-server.h"
64 Server *server;
97 if (s->server) {
98 assert(s->server->n_stdout_streams > 0);
99 s->server->n_stdout_streams --;
100 LIST_REMOVE(stdout_stream, s->server->stdout_streams, s);
103 LIST_REMOVE(stdout_stream_notify_queue, s->server->stdout_streams_notify_queue, s);
207 LIST_PREPEND(stdout_stream_notify_queue, s->server->stdout_streams_notify_queue, s);
210 if (s->server->notify_event_source) {
211 r = sd_event_source_set_enabled(s->server->notify_event_source, SD_EVENT_ON);
248 if (s->forward_to_syslog || s->server->forward_to_syslog)
249 server_forward_syslog(s->server, syslog_fixup_facility(priority), s->identifier, p, &s->ucred, NULL);
251 if (s->forward_to_kmsg || s->server->forward_to_kmsg)
252 server_forward_kmsg(s->server, priority, s->identifier, p, &s->ucred);
254 if (s->forward_to_console || s->server->forward_to_console)
255 server_forward_console(s->server, priority, s->identifier, p, &s->ucred);
257 if (s->server->forward_to_wall)
258 server_forward_wall(s->server, priority, s->identifier, p, &s->ucred);
281 server_dispatch_message(s->server, iovec, n, ELEMENTSOF(iovec), &s->ucred, NULL, s->label, label_len, s->unit_id, priority, 0);
512 stream->server = s;
532 log_error("Got invalid event from epoll for stdout server fd: %"PRIx32, revents);
732 return log_error_errno(r, "Failed to add stdout server fd to event source: %m");
736 return log_error_errno(r, "Failed to adjust priority of stdout server event source: %m");
756 assert(s->server);
757 assert(s->server->notify_fd >= 0);
772 l = sendmsg(s->server->notify_fd, &msghdr, MSG_DONTWAIT|MSG_NOSIGNAL);
783 LIST_REMOVE(stdout_stream_notify_queue, s->server->stdout_streams_notify_queue, s);