[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] make sure options.MaxConn can be reached
Update of /home/or/cvsroot/src/or
In directory moria.mit.edu:/home2/arma/work/onion/cvs/src/or
Modified Files:
main.c
Log Message:
make sure options.MaxConn can be reached
Index: main.c
===================================================================
RCS file: /home/or/cvsroot/src/or/main.c,v
retrieving revision 1.345
retrieving revision 1.346
diff -u -d -r1.345 -r1.346
--- main.c 31 Oct 2004 20:28:41 -0000 1.345
+++ main.c 1 Nov 2004 08:24:34 -0000 1.346
@@ -1078,6 +1078,9 @@
handle_signals(1);
+ if (set_max_file_descriptors(options.MaxConn) < 0)
+ return -1;
+
crypto_global_init();
crypto_seed_rng();
return 0;