journald: properly handle if we have no PID in a kmsg line

This commit is contained in:
Lennart Poettering 2012-05-31 01:26:06 +02:00
parent d7e1c95e0a
commit 96ceff5645

View 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)