[systemd-commits] src/journal

Lennart Poettering lennart at kemper.freedesktop.org
Wed May 30 16:26:36 PDT 2012


 src/journal/journald.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 96ceff5645faeaf02438d78996b8bdba4ebf05bb
Author: Lennart Poettering <lennart at poettering.net>
Date:   Thu May 31 01:26:06 2012 +0200

    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 8ce9ce8..f034a56 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)



More information about the systemd-commits mailing list