Mercurial > dovecot > core-2.2
changeset 21296:aa676841ed89
doveadm-mail: Set exit code to EX_TEMPFAIL on timeout
When running `doveadm save` command on proxy/director
and the remote command execution times out, exit code
must be set to EX_TEMPFAIL.
Fixes Panic: file doveadm-mail.c: line 405 (doveadm_mail_next_user):
assertion failed: (ctx->exit_code != 0)
author | Aki Tuomi <aki.tuomi@dovecot.fi> |
---|---|
date | Mon, 12 Dec 2016 09:41:02 +0200 |
parents | 75acc3287480 |
children | 083846b77c3b |
files | src/doveadm/doveadm-mail.c |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/doveadm/doveadm-mail.c Mon Dec 12 09:39:34 2016 +0200 +++ b/src/doveadm/doveadm-mail.c Mon Dec 12 09:41:02 2016 +0200 @@ -188,6 +188,7 @@ i_stream_set_name(input, i_stream_get_name(ctx->cmd_input)); i_stream_destroy(&ctx->cmd_input); ctx->cmd_input = input; + ctx->exit_code = EX_TEMPFAIL; io_loop_stop(current_ioloop); }