[or-cvs] mark_logs_temp() before init"ing new ones.
Roger Dingledine
arma at seul.org
Tue Nov 9 08:01:41 UTC 2004
Update of /home/or/cvsroot/src/or
In directory moria.mit.edu:/home2/arma/work/onion/cvs/src/or
Modified Files:
config.c main.c
Log Message:
mark_logs_temp() before init'ing new ones.
we were seeing double, triple, etc each time we setconf'ed.
Index: config.c
===================================================================
RCS file: /home/or/cvsroot/src/or/config.c,v
retrieving revision 1.232
retrieving revision 1.233
diff -u -d -r1.232 -r1.233
--- config.c 9 Nov 2004 07:55:48 -0000 1.232
+++ config.c 9 Nov 2004 08:01:39 -0000 1.233
@@ -256,8 +256,8 @@
if (set_max_file_descriptors(options->MaxConn) < 0)
return -1;
- /* Configure the log(s) */
- if (config_init_logs(options)<0)
+ mark_logs_temp(); /* Close current logs once new logs are open. */
+ if (config_init_logs(options)<0) /* Configure the log(s) */
return -1;
/* Close the temporary log we used while starting up, if it isn't already
* gone. */
Index: main.c
===================================================================
RCS file: /home/or/cvsroot/src/or/main.c,v
retrieving revision 1.361
retrieving revision 1.362
diff -u -d -r1.361 -r1.362
--- main.c 9 Nov 2004 07:29:05 -0000 1.361
+++ main.c 9 Nov 2004 08:01:39 -0000 1.362
@@ -696,7 +696,6 @@
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