1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2024-12-24 21:34:08 +03:00

journal: properly handle EPIPE from /dev/kmsg

This commit is contained in:
Lennart Poettering 2012-08-21 15:34:41 +02:00
parent fcde238921
commit 24a598f889

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");