[or-cvs] call set_max_file_descriptors() after we configure logs, so
Roger Dingledine
arma at seul.org
Fri Nov 26 03:05:57 UTC 2004
Update of /home2/or/cvsroot/tor/src/or
In directory moria.mit.edu:/home2/arma/work/onion/cvs/tor/src/or
Modified Files:
config.c
Log Message:
call set_max_file_descriptors() after we configure logs, so
it doesn't always do loglevel info logs on windows.
Index: config.c
===================================================================
RCS file: /home2/or/cvsroot/tor/src/or/config.c,v
retrieving revision 1.267
retrieving revision 1.268
diff -u -d -r1.267 -r1.268
--- config.c 23 Nov 2004 10:52:27 -0000 1.267
+++ config.c 26 Nov 2004 03:05:55 -0000 1.268
@@ -271,9 +271,6 @@
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 @@
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) {
More information about the tor-commits
mailing list