chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
systemctl: introduce -r switch to show units running in local containers in addition...
[elogind.git]
/
src
/
journal
/
journald-native.c
diff --git
a/src/journal/journald-native.c
b/src/journal/journald-native.c
index 5e19fa3f55ef8a8a1be0910c8a8c0277024ea0fe..0509c1eaeed31e8d62d9ad34673021985ad23aed 100644
(file)
--- a/
src/journal/journald-native.c
+++ b/
src/journal/journald-native.c
@@
-31,6
+31,7
@@
#include "journald-kmsg.h"
#include "journald-console.h"
#include "journald-syslog.h"
#include "journald-kmsg.h"
#include "journald-console.h"
#include "journald-syslog.h"
+#include "journald-wall.h"
/* Make sure not to make this smaller than the maximum coredump
* size. See COREDUMP_MAX in coredump.c */
/* Make sure not to make this smaller than the maximum coredump
* size. See COREDUMP_MAX in coredump.c */
@@
-265,6
+266,9
@@
void server_process_native_message(
if (s->forward_to_console)
server_forward_console(s, priority, identifier, message, ucred);
if (s->forward_to_console)
server_forward_console(s, priority, identifier, message, ucred);
+
+ if (s->forward_to_wall)
+ server_forward_wall(s, priority, identifier, message, ucred);
}
server_dispatch_message(s, iovec, n, m, ucred, tv, label, label_len, NULL, priority, object_pid);
}
server_dispatch_message(s, iovec, n, m, ucred, tv, label, label_len, NULL, priority, object_pid);
@@
-419,7
+423,7
@@
int server_open_native_socket(Server*s) {
return -errno;
}
return -errno;
}
- r = sd_event_add_io(s->event,
s->native_fd, EPOLLIN, process_datagram, s, &s->native_event_source
);
+ r = sd_event_add_io(s->event,
&s->native_event_source, s->native_fd, EPOLLIN, process_datagram, s
);
if (r < 0) {
log_error("Failed to add native server fd to event loop: %s", strerror(-r));
return r;
if (r < 0) {
log_error("Failed to add native server fd to event loop: %s", strerror(-r));
return r;