diff options
Diffstat (limited to '')
-rw-r--r-- | TODO | 2 | ||||
-rw-r--r-- | doc/info/mds.texinfo | 13 | ||||
-rw-r--r-- | src/libmdsserver/macros.h | 9 |
3 files changed, 22 insertions, 2 deletions
@@ -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{<libmdsserver/macros.h>} -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{<libmdsserver/macro-bits.h>}, 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 @@ -610,6 +610,15 @@ /** + * 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 */ |