[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] call set_max_file_descriptors() after we configure logs, so
- To: or-cvs@freehaven.net
- Subject: [or-cvs] call set_max_file_descriptors() after we configure logs, so
- From: arma@seul.org (Roger Dingledine)
- Date: Thu, 25 Nov 2004 22:05:57 -0500 (EST)
- Delivered-to: archiver@seul.org
- Delivered-to: or-cvs-outgoing@seul.org
- Delivered-to: or-cvs@seul.org
- Delivery-date: Thu, 25 Nov 2004 22:06:17 -0500
- Reply-to: or-dev@freehaven.net
- Sender: owner-or-cvs@freehaven.net
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) {