Mercurial > masqmail
diff src/masqmail.c @ 155:b5ab9cb2f18a
shut down on errors reading config file
while reading config file, log to log file
note: this breaks after SIGHUP
author | meillo@marmaro.de |
---|---|
date | Thu, 08 Jul 2010 09:43:27 +0200 |
parents | 5ec5e6637049 |
children | 5b621742b2e7 |
line wrap: on
line diff
--- a/src/masqmail.c Thu Jul 08 09:20:34 2010 +0200 +++ b/src/masqmail.c Thu Jul 08 09:43:27 2010 +0200 @@ -641,7 +641,13 @@ } } - read_conf(conf_file); + conf.log_dir = LOG_DIR; + logopen(); + if (!read_conf(conf_file)) { + logwrite(LOG_ALERT, "SHUTTING DOWN due to problems reading config\n"); + exit(5); + } + logclose(); if (do_queue) conf.do_queue = TRUE;