Browse Source

call set_max_file_descriptors() after we configure logs, so
it doesn't always do loglevel info logs on windows.


svn:r2987

Roger Dingledine 21 years ago
parent
commit
179ad27b34
1 changed files with 3 additions and 3 deletions
  1. 3 3
      src/or/config.c

+ 3 - 3
src/or/config.c

@@ -271,9 +271,6 @@ options_act(void) {
   if (options->command != CMD_RUN_TOR)
   if (options->command != CMD_RUN_TOR)
     return 0;
     return 0;
 
 
-  if (set_max_file_descriptors(options->MaxConn) < 0)
-    return -1;
-
   mark_logs_temp(); /* Close current logs once new logs are open. */
   mark_logs_temp(); /* Close current logs once new logs are open. */
   if (config_init_logs(options, 0)<0) /* Configure the log(s) */
   if (config_init_logs(options, 0)<0) /* Configure the log(s) */
     return -1;
     return -1;
@@ -282,6 +279,9 @@ options_act(void) {
   close_temp_logs();
   close_temp_logs();
   add_callback_log(LOG_NOTICE, LOG_ERR, control_event_logmsg);
   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();
     smartlist_t *sl = smartlist_create();
     for (cl = options->RedirectExit; cl; cl = cl->next) {
     for (cl = options->RedirectExit; cl; cl = cl->next) {