[or-cvs] while hibernating, hup should not regrow our listeners.

Roger Dingledine arma at seul.org
Fri Dec 3 23:53:37 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:
while hibernating, hup should not regrow our listeners.


Index: config.c
===================================================================
RCS file: /home2/or/cvsroot/tor/src/or/config.c,v
retrieving revision 1.278
retrieving revision 1.279
diff -u -d -r1.278 -r1.279
--- config.c	1 Dec 2004 04:27:11 -0000	1.278
+++ config.c	3 Dec 2004 23:53:35 -0000	1.279
@@ -337,7 +337,7 @@
   if (accounting_is_enabled(options))
     configure_accounting(time(NULL));
 
-  if (retry_all_listeners(1) < 0) {
+  if (!we_are_hibernating() && retry_all_listeners(1) < 0) {
     log_fn(LOG_ERR,"Failed to bind one of the listener ports.");
     return -1;
   }



More information about the tor-commits mailing list