Mercurial > dovecot > core-2.2
changeset 22370:f51eb78b45f2
lib-storage: mailbox_watch_extract_notify_fd() - give better reason if mailbox has no IOs
This happens currently with virtual mailboxes.
author | Timo Sirainen <timo.sirainen@dovecot.fi> |
---|---|
date | Wed, 19 Jul 2017 23:11:12 +0300 |
parents | 98652f62dbf5 |
children | e02a683b821c |
files | src/lib-storage/mailbox-watch.c |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-storage/mailbox-watch.c Wed Jul 19 23:09:13 2017 +0300 +++ b/src/lib-storage/mailbox-watch.c Wed Jul 19 23:11:12 2017 +0300 @@ -140,7 +140,10 @@ } if (failed) ret = -1; - else { + else if (array_count(&temp_ios) == 0) { + *reason_r = "Mailbox has no IO notifications"; + ret = -1; + } else { ret = io_loop_extract_notify_fd(ioloop); if (ret == -1) *reason_r = "Couldn't extra notify fd";