diff options
author | Mattias Andrée <maandree@operamail.com> | 2015-04-12 05:23:19 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2015-04-12 05:23:19 +0200 |
commit | 6dbcbc441ab98bcf0a602d9aa86232ae94e08a97 (patch) | |
tree | 46ea1235a1f84b57b65a9741415c35e9b911f69e /src/mds-base.c | |
parent | info: sigrtmin (diff) | |
download | mds-6dbcbc441ab98bcf0a602d9aa86232ae94e08a97.tar.gz mds-6dbcbc441ab98bcf0a602d9aa86232ae94e08a97.tar.bz2 mds-6dbcbc441ab98bcf0a602d9aa86232ae94e08a97.tar.xz |
noop implementation of siginfo support
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r-- | src/mds-base.c | 16 |
1 files changed, 16 insertions, 0 deletions
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 @@ -367,6 +367,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 * * @return Non-zero on error @@ -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); |