From: Nick Mathewson Date: Mon, 24 May 2004 02:28:15 +0000 (+0000) Subject: Keep temporary log in place while configuring logs X-Git-Tag: tor-0.0.7rc1~26 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9b4e8486cee190a41b0317e54e9f01dd6156992b;p=thirdparty%2Ftor.git Keep temporary log in place while configuring logs svn:r1919 --- diff --git a/src/or/main.c b/src/or/main.c index eb7a1a05fb..be14c80d06 100644 --- a/src/or/main.c +++ b/src/or/main.c @@ -564,11 +564,11 @@ static int init_from_config(int argc, char **argv) { start_daemon(options.DataDirectory); } - close_logs(); /* we'll close, then open with correct loglevel if necessary */ - /* Configure the log(s) */ if (config_init_logs(&options)<0) return -1; + /* Close the temporary log we used while starting up, if it isn't already + * gone. */ close_temp_logs(); /* Set up our buckets */