Skip to content

Commit

Permalink
doveadm-mail: Set exit code to EX_TEMPFAIL on timeout
Browse files Browse the repository at this point in the history
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)
  • Loading branch information
cmouse authored and sirainen committed Dec 15, 2016
1 parent e78960f commit b127fb2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/doveadm/doveadm-mail.c
Expand Up @@ -188,6 +188,7 @@ static void doveadm_mail_cmd_input_timeout(struct doveadm_mail_cmd_context *ctx)
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);
}

Expand Down

0 comments on commit b127fb2

Please sign in to comment.