diff options
author | Mattias Andrée <maandree@operamail.com> | 2014-08-12 02:29:52 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2014-08-12 02:29:52 +0200 |
commit | f3cf22b436f8f3e20a9b2f9256ff7c58aa0afda3 (patch) | |
tree | 4acb9a75483d6dbbf9a56d08cadc7273d0cd6156 /src/mds-base.h | |
parent | the kernel messes with /proc/*/exe (security precaution?), so we read /proc/self/exec when we start the server (diff) | |
download | mds-f3cf22b436f8f3e20a9b2f9256ff7c58aa0afda3.tar.gz mds-f3cf22b436f8f3e20a9b2f9256ff7c58aa0afda3.tar.bz2 mds-f3cf22b436f8f3e20a9b2f9256ff7c58aa0afda3.tar.xz |
misc
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r-- | src/mds-base.h | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/src/mds-base.h b/src/mds-base.h index 68feb32..2dac449 100644 --- a/src/mds-base.h +++ b/src/mds-base.h @@ -180,21 +180,26 @@ void received_noop(int signo) __attribute__((weak, const)); /** * This function should be implemented by the actual server implementation - * if the server is multithreaded + * if the server is multi-threaded * + * Send a singal to all threads except the current thread + * + * @param signo The signal + */ +void signal_all(int signo) __attribute__((weak)); + +/** * 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 + * When this function is invoked, it should set `reexecing` and + * `terminating` to a non-zero value * * @param signo The signal that has been received */ void received_reexec(int signo); /* __attribute__((weak)) */ /** - * This function should be implemented by the actual server implementation - * if the server is multithreaded - * * This function is called when a signal that * signals the server to re-exec has been received * |