aboutsummaryrefslogtreecommitdiffstats
path: root/src/mds-base.c
diff options
context:
space:
mode:
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);