aboutsummaryrefslogtreecommitdiff
path: root/src/or
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2004-11-01 08:24:34 +0000
committerRoger Dingledine <arma@torproject.org>2004-11-01 08:24:34 +0000
commit4689243242e2e1230cbc02782b42701e6dcdab4f (patch)
tree8376a280a08c6a9e409e592a16963e60bccca345 /src/or
parent2f5efbcb443d36d809ccfe3a4b222ad581fc7954 (diff)
downloadtor-4689243242e2e1230cbc02782b42701e6dcdab4f.tar
tor-4689243242e2e1230cbc02782b42701e6dcdab4f.tar.gz
make sure options.MaxConn can be reached
svn:r2638
Diffstat (limited to 'src/or')
-rw-r--r--src/or/main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/or/main.c b/src/or/main.c
index d28c5497a..942e6cd33 100644
--- a/src/or/main.c
+++ b/src/or/main.c
@@ -1078,6 +1078,9 @@ static int tor_init(int argc, char *argv[]) {
handle_signals(1);
+ if (set_max_file_descriptors(options.MaxConn) < 0)
+ return -1;
+
crypto_global_init();
crypto_seed_rng();
return 0;