diff --git a/src/main.c b/src/main.c index a19c2c09e..efcbc6203 100644 --- a/src/main.c +++ b/src/main.c @@ -288,10 +288,6 @@ int main(int argc, char **argv) int err = 0; lua_State *L; setup_signal_handler(); - /* parse args once to read config file location */ - if (parse_args(argc, argv, &err) != 0) { - return err; - } /* ini file sets defaults for arguments*/ parse_config(inifile); if (!global.inifile) { diff --git a/src/util/log.c b/src/util/log.c index 1cc3836db..958e26e2f 100644 --- a/src/util/log.c +++ b/src/util/log.c @@ -236,7 +236,6 @@ void log_printf(FILE * io, const char *format, ...) va_end(args); } - static FILE *logfile; void log_close(void) @@ -257,9 +256,6 @@ void log_close(void) void log_open(const char *filename) { - if (logfile) { - log_close(); - } log_rotate(filename, LOG_MAXBACKUPS); logfile = fopen(filename, "a"); if (logfile) {