From facb5d4221e1d603e61613ec8610feb7a73d3c46 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Fri, 9 Apr 2004 17:48:09 +0000 Subject: [PATCH] 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?) svn:r1578 --- src/or/main.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/or/main.c b/src/or/main.c index a73f047c7c..88814eed95 100644 --- a/src/or/main.c +++ b/src/or/main.c @@ -529,6 +529,12 @@ static int do_hup(void) { 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; -- 2.11.4.GIT