diff options
author | Nick Mathewson <nickm@torproject.org> | 2004-04-09 17:48:09 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2004-04-09 17:48:09 +0000 |
commit | facb5d4221e1d603e61613ec8610feb7a73d3c46 (patch) | |
tree | 2aa90391acf004343ef2e314fe34ac48f3adcba0 /src/or/main.c | |
parent | a1a4c5be1973153b307750c0bb95024da41b3569 (diff) | |
download | tor-facb5d4221e1d603e61613ec8610feb7a73d3c46.tar tor-facb5d4221e1d603e61613ec8610feb7a73d3c46.tar.gz |
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
Diffstat (limited to 'src/or/main.c')
-rw-r--r-- | src/or/main.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/or/main.c b/src/or/main.c index a73f047c7..88814eed9 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; |