summaryrefslogtreecommitdiff
path: root/src/journal/journal-send.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2012-01-05 15:34:13 +0100
committerLennart Poettering <lennart@poettering.net>2012-01-05 15:39:03 +0100
commit224f2ee221e77c326d1d7761abb6e812432b2163 (patch)
tree45c0cc0877201e1049ed7487b33947b18e338154 /src/journal/journal-send.c
parent674f8283698517047a7c0e78cff1e18932a97b05 (diff)
journald: add configuration file options to forward all logged data to kmsg, console, syslog
Diffstat (limited to 'src/journal/journal-send.c')
-rw-r--r--src/journal/journal-send.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/journal/journal-send.c b/src/journal/journal-send.c
index db5dbc0711..e7e3fa2cd0 100644
--- a/src/journal/journal-send.c
+++ b/src/journal/journal-send.c
@@ -237,7 +237,7 @@ _public_ int sd_journal_stream_fd(const char *tag, int priority, int priority_pr
tag = "";
l = strlen(tag);
- header = alloca(l + 1 + 2 + 2 + 2);
+ header = alloca(l + 1 + 2 + 2 + 2 + 2 + 2);
memcpy(header, tag, l);
header[l++] = '\n';
@@ -247,6 +247,10 @@ _public_ int sd_journal_stream_fd(const char *tag, int priority, int priority_pr
header[l++] = '\n';
header[l++] = '0';
header[l++] = '\n';
+ header[l++] = '0';
+ header[l++] = '\n';
+ header[l++] = '0';
+ header[l++] = '\n';
r = loop_write(fd, header, l, false);
if (r < 0) {