Mercurial > dovecot > original-hg > dovecot-1.2
changeset 7527:20c6e9545d56 HEAD
kqueue: If opening a file fails with ESTALE, don't log an error. It probably
just means the file was deleted by another NFS client.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Sat, 17 May 2008 01:12:34 +0300 |
parents | a957567706ec |
children | 4a0e2927a232 |
files | src/lib/ioloop-notify-kqueue.c |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib/ioloop-notify-kqueue.c Sat May 17 01:00:22 2008 +0300 +++ b/src/lib/ioloop-notify-kqueue.c Sat May 17 01:12:34 2008 +0300 @@ -118,7 +118,9 @@ fd = open(path, O_RDONLY); if (fd == -1) { - if (errno != ENOENT) + /* ESTALE could happen with NFS. Don't bother giving an error + message then. */ + if (errno != ENOENT && errno != ESTALE) i_error("open(%s) for kq notify failed: %m", path); return IO_NOTIFY_NOTFOUND; }