From f3cf22b436f8f3e20a9b2f9256ff7c58aa0afda3 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Tue, 12 Aug 2014 02:29:52 +0200 Subject: misc MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/mds-registry/signals.c | 42 +----------------------------------------- 1 file changed, 1 insertion(+), 41 deletions(-) (limited to 'src/mds-registry') diff --git a/src/mds-registry/signals.c b/src/mds-registry/signals.c index 7d1f5b4..954c12b 100644 --- a/src/mds-registry/signals.c +++ b/src/mds-registry/signals.c @@ -25,9 +25,7 @@ #include #include -#include #include -#include @@ -36,7 +34,7 @@ * * @param signo The signal */ -static void signal_all(int signo) +void signal_all(int signo) { pthread_t current_thread; ssize_t node; @@ -56,41 +54,3 @@ static void signal_all(int signo) ); } - -/** - * This function is called when a signal that - * signals the server to re-exec has been received - * - * When this function is invoked, it should set `reexecing` to a non-zero value - * - * @param signo The signal that has been received - */ -void received_reexec(int signo) -{ - if (reexecing == 0) - { - terminating = reexecing = 1; - eprint("re-exec signal received."); - signal_all(signo); - } -} - - -/** - * This function is called when a signal that - * signals the server to re-exec has been received - * - * When this function is invoked, it should set `terminating` to a non-zero value - * - * @param signo The signal that has been received - */ -void received_terminate(int signo) -{ - if (terminating == 0) - { - terminating = 1; - eprint("terminate signal received."); - signal_all(signo); - } -} - -- cgit v1.2.3-70-g09d2