diff options
author | Roger Dingledine <arma@torproject.org> | 2004-11-26 03:05:55 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2004-11-26 03:05:55 +0000 |
commit | 179ad27b34bc29cb47fbfa4d579986c44a50a325 (patch) | |
tree | dd19f0b0d4e4e853da6d112d7b716bb67b7c497a | |
parent | e24057b2bfa476cd6f9217c22336b76154b633c1 (diff) | |
download | tor-179ad27b34bc29cb47fbfa4d579986c44a50a325.tar.gz tor-179ad27b34bc29cb47fbfa4d579986c44a50a325.zip |
call set_max_file_descriptors() after we configure logs, so
it doesn't always do loglevel info logs on windows.
svn:r2987
-rw-r--r-- | src/or/config.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/or/config.c b/src/or/config.c index b9051d23a7..cfc7952702 100644 --- a/src/or/config.c +++ b/src/or/config.c @@ -271,9 +271,6 @@ options_act(void) { if (options->command != CMD_RUN_TOR) return 0; - if (set_max_file_descriptors(options->MaxConn) < 0) - return -1; - mark_logs_temp(); /* Close current logs once new logs are open. */ if (config_init_logs(options, 0)<0) /* Configure the log(s) */ return -1; @@ -282,6 +279,9 @@ options_act(void) { close_temp_logs(); add_callback_log(LOG_NOTICE, LOG_ERR, control_event_logmsg); + if (set_max_file_descriptors(options->MaxConn) < 0) + return -1; + { smartlist_t *sl = smartlist_create(); for (cl = options->RedirectExit; cl; cl = cl->next) { |