summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHarald Hoyer <harald@redhat.com>2011-05-25 13:09:08 +0200
committerLennart Poettering <lennart@poettering.net>2011-05-25 17:59:00 +0200
commit3afe3725fcf21fab7204243b9485a118e499b4a3 (patch)
tree89bfa75f5f24749fa43b35bbaf663822375d445f /src
parent235b28269a951fdad621c5ab95c213e62df7f16e (diff)
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.
Diffstat (limited to 'src')
-rw-r--r--src/readahead-collect.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/readahead-collect.c b/src/readahead-collect.c
index 3c48a02fc9..913a34005e 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");