diff options
author | Mattias Andrée <maandree@operamail.com> | 2014-08-20 21:15:46 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2014-08-20 21:15:46 +0200 |
commit | 8cefc5390822c8fb110439b366ea6226b5eddd27 (patch) | |
tree | f56ee9605aa2559b8d173f0f0ba80a7b05694165 /src/mds-base.h | |
parent | add sigdanger support (diff) | |
download | mds-8cefc5390822c8fb110439b366ea6226b5eddd27.tar.gz mds-8cefc5390822c8fb110439b366ea6226b5eddd27.tar.bz2 mds-8cefc5390822c8fb110439b366ea6226b5eddd27.tar.xz |
add --immortal option
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r-- | src/mds-base.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/mds-base.h b/src/mds-base.h index c3c6c9c..89231bf 100644 --- a/src/mds-base.h +++ b/src/mds-base.h @@ -65,7 +65,7 @@ typedef struct server_characteristics unsigned fork_for_safety : 1; /** - * Seting this to non-zero without setting a signal action + * Setting 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 @@ -73,6 +73,9 @@ typedef struct server_characteristics * 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. + * + * This setting will be treated as set to zero if + * --immortal is used. */ unsigned danger_is_deadly : 1; @@ -113,6 +116,12 @@ extern int is_respawn; extern int is_reexec; /** + * Whether the server should do its + * best to resist event triggered death + */ +extern int is_immortal; + +/** * Whether to fork the process when the * server has been properly initialised */ |