dovecot-2.2: lib: file_*_lock() with flock() timeouts should hav...

dovecot at dovecot.org dovecot at dovecot.org
Thu Jul 10 21:22:30 UTC 2014


details:   http://hg.dovecot.org/dovecot-2.2/rev/abc7ebe1dad9
changeset: 17622:abc7ebe1dad9
user:      Timo Sirainen <tss at iki.fi>
date:      Fri Jul 11 00:20:41 2014 +0300
description:
lib: file_*_lock() with flock() timeouts should have returned errno=EAGAIN
(Instead of EINTR.)

diffstat:

 src/lib/file-lock.c |  1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diffs (11 lines):

diff -r 70486f364ce0 -r abc7ebe1dad9 src/lib/file-lock.c
--- a/src/lib/file-lock.c	Thu Jul 10 18:31:10 2014 +0300
+++ b/src/lib/file-lock.c	Fri Jul 11 00:20:41 2014 +0300
@@ -127,6 +127,7 @@
 		if (errno == EWOULDBLOCK || errno == EINTR) {
 			/* a) locked by another process,
 			   b) timeouted */
+			errno = EAGAIN;
 			return 0;
 		}
 		i_error("flock(%s) locking failed for file %s: %m",


More information about the dovecot-cvs mailing list