From 6dbcbc441ab98bcf0a602d9aa86232ae94e08a97 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sun, 12 Apr 2015 05:23:19 +0200 Subject: noop implementation of siginfo support MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/mds-base.c | 16 ++++++++++++++++ src/mds-base.h | 9 +++++++++ 2 files changed, 25 insertions(+) (limited to 'src') diff --git a/src/mds-base.c b/src/mds-base.c index 2854bef..b944d08 100644 --- a/src/mds-base.c +++ b/src/mds-base.c @@ -366,6 +366,19 @@ void __attribute__((weak)) received_danger(int signo) } +/** + * This function is called when a signal that + * signals that the system to dump state information + * and statistics has been received + * + * @param signo The signal that has been received + */ +void __attribute__((weak)) received_info(int signo) +{ + (void) signo; +} + + /** * Unmarshal the server's saved state * @@ -626,6 +639,9 @@ int trap_signals(void) else fail_if (xsigaction(SIGDANGER, received_danger) < 0); + /* Implement support of SIGINFO. */ + fail_if (xsigaction(SIGINFO, received_info) < 0); + return 0; fail: xperror(*argv); diff --git a/src/mds-base.h b/src/mds-base.h index fe33a83..50aba78 100644 --- a/src/mds-base.h +++ b/src/mds-base.h @@ -237,6 +237,15 @@ void received_terminate(int signo); /* __attribute__((weak)) */ */ void received_danger(int signo); /* __attribute__((weak)) */ +/** + * This function is called when a signal that + * signals that the system to dump state information + * and statistics has been received + * + * @param signo The signal that has been received + */ +void received_info(int signo); /* __attribute__((weak)) */ + /** * This function should be implemented by the actual server implementation * -- cgit v1.2.3-70-g09d2