summaryrefslogtreecommitdiff
path: root/src/journal
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2012-05-31 01:26:06 +0200
committerLennart Poettering <lennart@poettering.net>2012-05-31 01:26:06 +0200
commit96ceff5645faeaf02438d78996b8bdba4ebf05bb (patch)
tree15a6915d7bb0fb6baff6fb3ee6e137ee108a95b6 /src/journal
parentd7e1c95e0a22eb1ada8ad53dab3af5fec2af1d0c (diff)
journald: properly handle if we have no PID in a kmsg line
Diffstat (limited to 'src/journal')
-rw-r--r--src/journal/journald.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/journal/journald.c b/src/journal/journald.c
index 8ce9ce858b..f034a569a9 100644
--- a/src/journal/journald.c
+++ b/src/journal/journald.c
@@ -1827,7 +1827,7 @@ static void proc_kmsg_line(Server *s, const char *p) {
/* Avoid any messages we generated ourselves via
* log_info() and friends. */
- if (is_us(pid))
+ if (pid && is_us(pid))
goto finish;
if (s->forward_to_syslog)