dovecot-2.2: lib: s/EDEADLOCK/EDEADLK/

dovecot at dovecot.org dovecot at dovecot.org
Mon Sep 28 20:40:58 UTC 2015


details:   http://hg.dovecot.org/dovecot-2.2/rev/7633bca91551
changeset: 19254:7633bca91551
user:      Timo Sirainen <tss at iki.fi>
date:      Mon Sep 28 23:39:31 2015 +0300
description:
lib: s/EDEADLOCK/EDEADLK/
It felt wrong since the beginning, but my first attempt at EDEADLCK didn't
work and EDEADLOCK did. Of course, not everywhere.

diffstat:

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

diffs (21 lines):

diff -r 460cee8121ff -r 7633bca91551 src/lib/file-lock.c
--- a/src/lib/file-lock.c	Mon Sep 28 17:26:04 2015 +0300
+++ b/src/lib/file-lock.c	Mon Sep 28 23:39:31 2015 +0300
@@ -211,7 +211,7 @@
 		}
 		*error_r = t_strdup_printf("fcntl(%s, %s, %s) locking failed: %m",
 			path, lock_type_str, timeout_secs == 0 ? "F_SETLK" : "F_SETLKW");
-		if (errno == EDEADLOCK)
+		if (errno == EDEADLK)
 			i_panic("%s%s", *error_r, file_lock_find(fd, lock_method, lock_type));
 		return -1;
 #endif
@@ -259,7 +259,7 @@
 		}
 		*error_r = t_strdup_printf("flock(%s, %s) failed: %m",
 					   path, lock_type_str);
-		if (errno == EDEADLOCK)
+		if (errno == EDEADLK)
 			i_panic("%s%s", *error_r, file_lock_find(fd, lock_method, lock_type));
 		return -1;
 #endif


More information about the dovecot-cvs mailing list