Mercurial > dovecot > original-hg > dovecot-1.2
changeset 9410:ae29ecea8d06 HEAD
If info log can't be opened, log about it to error log.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Mon, 05 Oct 2009 16:53:09 -0400 |
parents | a0fa514d92f0 |
children | df0f95353fdd |
files | src/lib/failures.c |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib/failures.c Mon Oct 05 14:56:51 2009 -0400 +++ b/src/lib/failures.c Mon Oct 05 16:53:09 2009 -0400 @@ -369,7 +369,10 @@ i_snprintf(buf, sizeof(buf), "Can't open log file %s: %m\n", path); (void)write_full(STDERR_FILENO, buf, strlen(buf)); - failure_exit(FATAL_LOGOPEN); + if (fd == &log_fd) + failure_exit(FATAL_LOGOPEN); + else + i_fatal_status(FATAL_LOGOPEN, "%s", buf); } fd_close_on_exec(*fd, TRUE); }