[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] Reload rendezvous service keys on sighup; otherwise, we win...
- To: or-cvs@freehaven.net
- Subject: [or-cvs] Reload rendezvous service keys on sighup; otherwise, we win...
- From: nickm@seul.org (Nick Mathewson)
- Date: Fri,  9 Apr 2004 13:48:12 -0400 (EDT)
- Delivered-to: archiver@seul.org
- Delivered-to: or-cvs-outgoing@seul.org
- Delivered-to: or-cvs@seul.org
- Delivery-date: Fri, 09 Apr 2004 13:48:30 -0400
- Reply-to: or-dev@freehaven.net
- Sender: owner-or-cvs@freehaven.net
Update of /home/or/cvsroot/src/or
In directory moria.mit.edu:/tmp/cvs-serv25070/src/or
Modified Files:
	main.c 
Log Message:
Reload rendezvous service keys on sighup; otherwise, we wind up with a
bunch of half-initialized services.  This should solve half of
weasel's current bug.  The crash is the other half.
(arma: should we also call rend_services_init on hup?)
Index: main.c
===================================================================
RCS file: /home/or/cvsroot/src/or/main.c,v
retrieving revision 1.229
retrieving revision 1.230
diff -u -d -r1.229 -r1.230
--- main.c	9 Apr 2004 09:39:42 -0000	1.229
+++ main.c	9 Apr 2004 17:48:09 -0000	1.230
@@ -529,6 +529,12 @@
   if (init_from_config(0, NULL) < 0) {
     exit(1);
   }
+  /* reload keys as needed for rendezvous services. */
+  if (rend_service_init_keys()<0) {
+    log_fn(LOG_ERR,"Error reloading rendezvous service keys");
+    exit(1);
+  }
+  /* XXX also call rend_services_init ?? */
   if(retry_all_connections() < 0) {
     log_fn(LOG_ERR,"Failed to bind one of the listener ports.");
     return -1;