aboutsummaryrefslogtreecommitdiffstats
path: root/src/mds-base.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-08-02 20:01:03 +0200
committerMattias Andrée <maandree@operamail.com>2014-08-02 20:01:03 +0200
commit32bf8aea8f3a46ee6c2808cd2369a7558b7b6bc7 (patch)
treefcbdc048f48642c033d2c61bd9ca98ab1d02d56d /src/mds-base.c
parentm (diff)
downloadmds-32bf8aea8f3a46ee6c2808cd2369a7558b7b6bc7.tar.gz
mds-32bf8aea8f3a46ee6c2808cd2369a7558b7b6bc7.tar.bz2
mds-32bf8aea8f3a46ee6c2808cd2369a7558b7b6bc7.tar.xz
misc
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r--src/mds-base.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/mds-base.c b/src/mds-base.c
index 9baa42e..04ae25b 100644
--- a/src/mds-base.c
+++ b/src/mds-base.c
@@ -208,6 +208,18 @@ void __attribute__((weak)) server_initialised(void)
/**
+ * This function is called when an intraprocess signal
+ * that used to send a notification to a thread
+ *
+ * @param signo The signal that has been received
+ */
+void received_noop(int signo)
+{
+ (void) signo;
+}
+
+
+/**
* This function is called when a signal that
* signals the server to re-exec has been received
*
@@ -473,6 +485,9 @@ int trap_signals(void)
/* Implement clean exit on SIGINT. */
fail_if (xsigaction(SIGINT, received_terminate) < 0);
+ /* Implement clean exit on SIGRTMIN. */
+ fail_if (xsigaction(SIGRTMIN, received_noop) < 0);
+
return 0;
pfail:
perror(*argv);