From 24a598f889229e14c62f80c58d5d32cd9663c812 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Tue, 21 Aug 2012 15:34:41 +0200 Subject: journal: properly handle EPIPE from /dev/kmsg --- src/journal/journald.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/journal') diff --git a/src/journal/journald.c b/src/journal/journald.c index f2dd4050b6..a5025f5687 100644 --- a/src/journal/journald.c +++ b/src/journal/journald.c @@ -2161,7 +2161,7 @@ static int server_read_dev_kmsg(Server *s) { return 0; } - if (errno == EAGAIN || errno == EINTR) + if (errno == EAGAIN || errno == EINTR || errno == EPIPE) return 0; log_error("Failed to read from kernel: %m"); -- cgit v1.2.3-54-g00ecf