readahead-collect: ignore EACCES for fanotify

At the start of auditd, we are temporarily not able to read
from the fanotify fd. Ignoring it, seems to work.
This commit is contained in:
Harald Hoyer
2011-05-25 13:09:08 +02:00
committed by Lennart Poettering
parent 235b28269a
commit 3afe3725fc

View File

@@ -380,7 +380,7 @@ static int collect(const char *root) {
if ((n = read(fanotify_fd, &data, sizeof(data))) < 0) {
if (errno == EINTR || errno == EAGAIN)
if (errno == EINTR || errno == EAGAIN || errno == EACCES)
continue;
log_error("Failed to read event: %m");