[or-cvs] bugfix: we were starting to daemonize before we opened our ...
Roger Dingledine
arma at seul.org
Thu Sep 23 04:32:46 UTC 2004
Update of /home/or/cvsroot/src/or
In directory moria.mit.edu:/home2/arma/work/onion/cvs/src/or
Modified Files:
main.c
Log Message:
bugfix: we were starting to daemonize before we opened our logs,
so if there were any problems opening logs, we would complain to
stderr (which wouldn't work) and then mysteriously exit.
Index: main.c
===================================================================
RCS file: /home/or/cvsroot/src/or/main.c,v
retrieving revision 1.326
retrieving revision 1.327
diff -u -d -r1.326 -r1.327
--- main.c 22 Sep 2004 04:08:05 -0000 1.326
+++ main.c 23 Sep 2004 04:32:43 -0000 1.327
@@ -690,11 +690,6 @@
return -1;
}
- /* Start backgrounding the process, if requested. */
- if (options.RunAsDaemon) {
- start_daemon(get_data_directory(&options));
- }
-
/* Configure the log(s) */
if (config_init_logs(&options)<0)
return -1;
@@ -702,6 +697,11 @@
* gone. */
close_temp_logs();
+ /* Start backgrounding the process, if requested. */
+ if (options.RunAsDaemon) {
+ start_daemon(get_data_directory(&options));
+ }
+
/* Set up our buckets */
connection_bucket_init();
stats_prev_global_read_bucket = global_read_bucket;
More information about the tor-commits
mailing list