]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
When i_set_failure_file() is called, make sure the handlers are reset back
authorTimo Sirainen <tss@iki.fi>
Fri, 9 Jul 2004 19:08:35 +0000 (22:08 +0300)
committerTimo Sirainen <tss@iki.fi>
Fri, 9 Jul 2004 19:08:35 +0000 (22:08 +0300)
to defaults.

--HG--
branch : HEAD

src/lib/failures.c

index 094613df481c39821026788a517618e6319fa0b0..9595b42816494bd5ba62a93dc892bd401739da71 100644 (file)
@@ -342,6 +342,11 @@ void i_set_failure_file(const char *path, const char *prefix)
        if (log_info_fd != NULL && log_info_fd != stderr)
                (void)fclose(log_info_fd);
        log_info_fd = log_fd;
+
+       i_set_panic_handler(NULL);
+       i_set_fatal_handler(NULL);
+       i_set_error_handler(NULL);
+       i_set_warning_handler(NULL);
 }
 
 static int internal_handler(char log_type, const char *format, va_list args)