From: Lennart Poettering Date: Wed, 30 May 2012 23:26:06 +0000 (+0200) Subject: journald: properly handle if we have no PID in a kmsg line X-Git-Tag: v184~2 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=96ceff5645faeaf02438d78996b8bdba4ebf05bb;p=systemd journald: properly handle if we have no PID in a kmsg line --- diff --git a/src/journal/journald.c b/src/journal/journald.c index 8ce9ce85..f034a569 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)