chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
235b282
)
readahead-collect: ignore EACCES for fanotify
author
Harald Hoyer
<harald@redhat.com>
Wed, 25 May 2011 11:09:08 +0000
(13:09 +0200)
committer
Lennart Poettering
<lennart@poettering.net>
Wed, 25 May 2011 15:59:00 +0000
(17:59 +0200)
At the start of auditd, we are temporarily not able to read
from the fanotify fd. Ignoring it, seems to work.
src/readahead-collect.c
patch
|
blob
|
history
diff --git
a/src/readahead-collect.c
b/src/readahead-collect.c
index 3c48a02fc9e49dc9a92c3e43d4715a0dbcbfbbe9..913a34005e3c69f8a8c31dfa5510997e68bb9a17 100644
(file)
--- 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");