summaryrefslogtreecommitdiff
path: root/src/journal/journald.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2012-08-21 15:34:41 +0200
committerLennart Poettering <lennart@poettering.net>2012-08-21 15:39:34 +0200
commit24a598f889229e14c62f80c58d5d32cd9663c812 (patch)
tree2f02ccd4958425d18dfc5ec96b2ff80b9cb09f79 /src/journal/journald.c
parentfcde238921b857679363a95488a5a5af1dc1f243 (diff)
journal: properly handle EPIPE from /dev/kmsg
Diffstat (limited to 'src/journal/journald.c')
-rw-r--r--src/journal/journald.c2
1 files changed, 1 insertions, 1 deletions
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");