[or-cvs] Stop multiplying logs on sighup.

Nick Mathewson nickm at seul.org
Wed Jun 2 19:18:40 UTC 2004


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

Modified Files:
	main.c 
Log Message:
Stop multiplying logs on sighup.

Index: main.c
===================================================================
RCS file: /home/or/cvsroot/src/or/main.c,v
retrieving revision 1.279
retrieving revision 1.280
diff -u -d -r1.279 -r1.280
--- main.c	1 Jun 2004 22:09:58 -0000	1.279
+++ main.c	2 Jun 2004 19:18:37 -0000	1.280
@@ -608,6 +608,7 @@
 
   log_fn(LOG_NOTICE,"Received sighup. Reloading config.");
   has_completed_circuit=0;
+  mark_logs_temp(); /* Close current logs once new logs are open. */
   /* first, reload config variables, in case they've changed */
   /* no need to provide argc/v, they've been cached inside init_from_config */
   if (init_from_config(0, NULL) < 0) {



More information about the tor-commits mailing list