From: Harald Hoyer Date: Wed, 25 May 2011 11:09:08 +0000 (+0200) Subject: readahead-collect: ignore EACCES for fanotify X-Git-Tag: v28~6 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3afe3725fcf21fab7204243b9485a118e499b4a3;p=systemd 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. --- diff --git a/src/readahead-collect.c b/src/readahead-collect.c index 3c48a02f..913a3400 100644 --- a/src/readahead-collect.c +++ b/src/readahead-collect.c @@ -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");