diff options
author | Jakub Hrozek <jhrozek@redhat.com> | 2009-08-03 11:55:36 +0200 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2009-08-11 12:29:35 -0400 |
commit | dd8aaf74198c084fd0aa712d56c4511978f04ebe (patch) | |
tree | 32b5b07a2781ffe2381265f3ffeb8202cd216e91 /server/util/util.h | |
parent | b3b55f167063417c285524ba35bd9298965b834a (diff) | |
download | sssd-dd8aaf74198c084fd0aa712d56c4511978f04ebe.tar.gz sssd-dd8aaf74198c084fd0aa712d56c4511978f04ebe.tar.xz sssd-dd8aaf74198c084fd0aa712d56c4511978f04ebe.zip |
Make child processes exit when parent dies
The child processes call prctl() and when their parent process is
killed, they are sent SIGTERM using prctl. This is currently
Linux-specific, for non-Linuxes, a similar effect is achieved by
catching a set of common termination signals and sending SIGTERM to the
process group.
Diffstat (limited to 'server/util/util.h')
-rw-r--r-- | server/util/util.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/server/util/util.h b/server/util/util.h index e11bc51cf..879652924 100644 --- a/server/util/util.h +++ b/server/util/util.h @@ -107,6 +107,7 @@ struct main_context { struct confdb_ctx *confdb_ctx; }; +int die_if_parent_died(void); int server_setup(const char *name, int flags, const char *conf_entry, struct main_context **main_ctx); |