[or-cvs] Keep temporary log in place while configuring logs

Nick Mathewson nickm at seul.org
Mon May 24 02:28:17 UTC 2004


Update of /home/or/cvsroot/src/or
In directory moria.mit.edu:/tmp/cvs-serv13412/src/or

Modified Files:
	main.c 
Log Message:
Keep temporary log in place while configuring logs

Index: main.c
===================================================================
RCS file: /home/or/cvsroot/src/or/main.c,v
retrieving revision 1.274
retrieving revision 1.275
diff -u -d -r1.274 -r1.275
--- main.c	20 May 2004 19:47:28 -0000	1.274
+++ main.c	24 May 2004 02:28:15 -0000	1.275
@@ -564,11 +564,11 @@
     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 */



More information about the tor-commits mailing list