From 168a2edcc6db0c790abff8af451e455709c7e22a Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sun, 12 Apr 2015 05:06:46 +0200 Subject: document siginfo and add it to macros.h MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- TODO | 2 ++ doc/info/mds.texinfo | 13 +++++++++++-- src/libmdsserver/macros.h | 9 +++++++++ 3 files changed, 22 insertions(+), 2 deletions(-) diff --git a/TODO b/TODO index c2c1b44..55d3848 100644 --- a/TODO +++ b/TODO @@ -69,3 +69,5 @@ to autorelease. IPA keyboard layout +Add support for SIGINFO + diff --git a/doc/info/mds.texinfo b/doc/info/mds.texinfo index 665ee0d..a051a6c 100644 --- a/doc/info/mds.texinfo +++ b/doc/info/mds.texinfo @@ -432,6 +432,15 @@ unavailable when running under @command{valgrind}}. Unimportant servers may choose to die on @command{SIGDANGER}. +Server may also choose to support the signal +@command{SIGINFO}, or if not defined +@command{SIGRTMIN + 2}. It is not expected +that server do support this signal, but +thay must not die when received. @command{SIGINFO} +is send by a user to the server, if she wants +the server to dump information about the +server's state or statistics to the TTY. + @node Filesystem @@ -4056,8 +4065,8 @@ If @code{condition} is satisfied, @end table Additionally, @file{} -defines any missing signal name: -currently @code{SIGDANGER} and +defines any missing signal name: currently +@code{SIGDANGER}, @code{SIGINFO} and @code{SIGUPDATE}, and by inclusion of @file{}, variants of @code{atoi} for portability and diff --git a/src/libmdsserver/macros.h b/src/libmdsserver/macros.h index 2e1013d..7ab5f04 100644 --- a/src/libmdsserver/macros.h +++ b/src/libmdsserver/macros.h @@ -609,6 +609,15 @@ #endif +/** + * The user want the server to dump information + * about the server's state or statistics + */ +#ifndef SIGINFO +# define SIGINFO (SIGRTMIN + 2) +#endif + + /** * The user wants the program to re-exec. * into an updated binary -- cgit v1.2.3-70-g09d2