diff options
author | Moritz Jodeit <moritz@cvs.openbsd.org> | 2005-05-03 14:03:12 +0000 |
---|---|---|
committer | Moritz Jodeit <moritz@cvs.openbsd.org> | 2005-05-03 14:03:12 +0000 |
commit | 465c4d72500d213fd2692f3573c8fb2721ffe26a (patch) | |
tree | 50266b52d76043a906d5b860833cbb32677df8ed /sbin/isakmpd | |
parent | 90be247e606cc6c2b27d71d189e1a5a207b1b5bb (diff) |
Remove SIGUSR2-related stuff as suggested by ho@.
SA rehashing won't happen anytime soon. ok hshoexer@
Diffstat (limited to 'sbin/isakmpd')
-rw-r--r-- | sbin/isakmpd/isakmpd.c | 36 | ||||
-rw-r--r-- | sbin/isakmpd/monitor.c | 3 |
2 files changed, 2 insertions, 37 deletions
diff --git a/sbin/isakmpd/isakmpd.c b/sbin/isakmpd/isakmpd.c index 40d96097e68..0d41014b45c 100644 --- a/sbin/isakmpd/isakmpd.c +++ b/sbin/isakmpd/isakmpd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: isakmpd.c,v 1.86 2005/05/03 13:09:45 moritz Exp $ */ +/* $OpenBSD: isakmpd.c,v 1.87 2005/05/03 14:03:11 moritz Exp $ */ /* $EOM: isakmpd.c,v 1.54 2000/10/05 09:28:22 niklas Exp $ */ /* @@ -90,13 +90,6 @@ volatile sig_atomic_t sigusr1ed = 0; static char *report_file = "/var/run/isakmpd.report"; /* - * If we receive a USR2 signal, this flag gets set to show we need to - * rehash our SA soft expiration timers to a uniform distribution. - * XXX Perhaps this is a really bad idea? - */ -volatile sig_atomic_t sigusr2ed = 0; - -/* * If we receive a TERM signal, perform a "clean shutdown" of the daemon. * This includes to send DELETE notifications for all our active SAs. * Also on recv of an INT signal (Ctrl-C out of an '-d' session, typically). @@ -272,24 +265,6 @@ sigusr1(int sig) sigusr1ed = 1; } -/* Rehash soft expiration timers on SIGUSR2. */ -static void -rehash_timers(void) -{ -#if 0 - /* XXX - not yet */ - log_print("SIGUSR2 received, rehashing soft expiration timers."); - - timer_rehash_timers(); -#endif -} - -static void -sigusr2(int sig) -{ - sigusr2ed = 1; -} - static int phase2_sa_check(struct sa *sa, void *arg) { @@ -323,9 +298,6 @@ set_slave_signals(void) /* Report state on USR1 reception. */ signal(SIGUSR1, sigusr1); - - /* Rehash soft expiration timers on USR2 reception. */ - signal(SIGUSR2, sigusr2); } static void @@ -468,12 +440,6 @@ main(int argc, char *argv[]) log_print("SIGUSR1 received"); report(); } - /* and if someone sent SIGUSR2, do a timer rehash. */ - if (sigusr2ed) { - sigusr2ed = 0; - log_print("SIGUSR2 received"); - rehash_timers(); - } /* * and if someone set 'sigtermed' (SIGTERM, SIGINT or via the * UI), this indicates we should start a controlled shutdown diff --git a/sbin/isakmpd/monitor.c b/sbin/isakmpd/monitor.c index 007dc86a53b..c34de6342bf 100644 --- a/sbin/isakmpd/monitor.c +++ b/sbin/isakmpd/monitor.c @@ -1,4 +1,4 @@ -/* $OpenBSD: monitor.c,v 1.41 2005/05/03 13:09:45 moritz Exp $ */ +/* $OpenBSD: monitor.c,v 1.42 2005/05/03 14:03:11 moritz Exp $ */ /* * Copyright (c) 2003 Håkan Olsson. All rights reserved. @@ -524,7 +524,6 @@ set_monitor_signals(void) signal(SIGTERM, sig_pass_to_chld); signal(SIGHUP, sig_pass_to_chld); signal(SIGUSR1, sig_pass_to_chld); - signal(SIGUSR2, sig_pass_to_chld); } /* Help functions for monitor_loop(). */ |