journal: properly handle EPIPE from /dev/kmsg

This commit is contained in:
Lennart Poettering
2012-08-21 15:39:34 +02:00
parent fcde238921
commit 24a598f889
+1 -1
View File
@@ -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");