Mercurial > dovecot > core-2.2
changeset 19149:19576fdbf950
lib: file_wait_lock_error() assert-crashes now on EDEADLOCK
It's always a bug and a crash can help debug it.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Wed, 16 Sep 2015 10:46:44 +0900 |
parents | d8c27e220815 |
children | a72a65771d8c |
files | src/lib/file-lock.c |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib/file-lock.c Wed Sep 16 05:01:40 2015 +0900 +++ b/src/lib/file-lock.c Wed Sep 16 10:46:44 2015 +0900 @@ -292,8 +292,10 @@ int ret; ret = file_lock_do(fd, path, lock_type, lock_method, timeout_secs, error_r); - if (ret <= 0) + if (ret <= 0) { + i_assert(errno != EDEADLOCK); return ret; + } lock = i_new(struct file_lock, 1); lock->fd = fd;