# HG changeset patch # User Timo Sirainen # Date 1254775989 14400 # Node ID ae29ecea8d068b7beefb929c5c71e73638184d9d # Parent a0fa514d92f003af19652972d4e8a3d8aa37412e If info log can't be opened, log about it to error log. diff -r a0fa514d92f0 -r ae29ecea8d06 src/lib/failures.c --- 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); }