Mercurial > dovecot > original-hg > dovecot-1.2
changeset 5291:41b80786c06f HEAD
failure_exit_callback hook was set too late, so if log opening failed it
exited with wrong exit code.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Sun, 11 Mar 2007 23:58:15 +0200 |
parents | 9b3029f06521 |
children | cf3d2b1eb7cb |
files | src/deliver/deliver.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/deliver/deliver.c Sun Mar 11 23:03:15 2007 +0200 +++ b/src/deliver/deliver.c Sun Mar 11 23:58:15 2007 +0200 @@ -420,6 +420,8 @@ { const char *prefix, *log_path, *stamp; + i_set_failure_exit_callback(failure_exit_callback); + prefix = t_strdup_printf("deliver(%s)", username); log_path = getenv("LOG_PATH"); if (log_path == NULL || *log_path == '\0') { @@ -438,8 +440,6 @@ if (log_path != NULL && *log_path != '\0') i_set_info_file(log_path); - i_set_failure_exit_callback(failure_exit_callback); - stamp = getenv("LOG_TIMESTAMP"); if (stamp == NULL) stamp = DEFAULT_FAILURE_STAMP_FORMAT;