]> err.no Git - systemd/commitdiff
journald: properly handle if we have no PID in a kmsg line
authorLennart Poettering <lennart@poettering.net>
Wed, 30 May 2012 23:26:06 +0000 (01:26 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 30 May 2012 23:26:06 +0000 (01:26 +0200)
src/journal/journald.c

index 8ce9ce858bc88e44a9b284675089961dce2310d6..f034a569a9fbf18d6799e30715b053dd19285bd1 100644 (file)
@@ -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)