aboutsummaryrefslogtreecommitdiffstats
path: root/src/mds-base.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mds-base.h')
-rw-r--r--src/mds-base.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/mds-base.h b/src/mds-base.h
index 2dac449..c3c6c9c 100644
--- a/src/mds-base.h
+++ b/src/mds-base.h
@@ -64,6 +64,18 @@ typedef struct server_characteristics
*/
unsigned fork_for_safety : 1;
+ /**
+ * Seting this to non-zero without setting a signal action
+ * for `SIGDANGER` will cause the server to die if `SIGDANGER`
+ * is received. It is safe to set both `danger_is_deadly` and
+ * `fork_for_safety` to non-zero, during the call of
+ * `server_initialised` the signal handler for `SIGDANGER`
+ * in the parent process will be set to `SIG_IGN` independently
+ * of the value of `danger_is_deadly` if `fork_for_safety`
+ * is set to non-zero.
+ */
+ unsigned danger_is_deadly : 1;
+
} __attribute__((packed)) server_characteristics_t;