summaryrefslogtreecommitdiffstats
path: root/src/providers/ldap/ldap_common.c
diff options
context:
space:
mode:
authorSimo Sorce <simo@redhat.com>2013-11-09 16:07:06 -0500
committerJakub Hrozek <jhrozek@redhat.com>2013-11-12 11:24:58 +0100
commit3242dd4a49c3869c9b066a63afb81cebf1a35b7d (patch)
tree3e345e445e651f01511fa81c4a365588cbcaf377 /src/providers/ldap/ldap_common.c
parent27712b5a46e3b579b9d03e363a7d0769e8c307fc (diff)
downloadsssd-3242dd4a49c3869c9b066a63afb81cebf1a35b7d.tar.gz
sssd-3242dd4a49c3869c9b066a63afb81cebf1a35b7d.tar.xz
sssd-3242dd4a49c3869c9b066a63afb81cebf1a35b7d.zip
Signals: Refactor termination of processes
sig_term() was never used as a real signal handler, but only called by tevent signal handlers in the kerberos and ldap children. Also the same code was duplicated with separate local guard variables in other functions. Unify orderly termination handling, between all these functions.
Diffstat (limited to 'src/providers/ldap/ldap_common.c')
-rw-r--r--src/providers/ldap/ldap_common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/providers/ldap/ldap_common.c b/src/providers/ldap/ldap_common.c
index cd38ac35a..07fb6ae83 100644
--- a/src/providers/ldap/ldap_common.c
+++ b/src/providers/ldap/ldap_common.c
@@ -1090,7 +1090,7 @@ static void sdap_finalize(struct tevent_context *ev,
DEBUG(1, ("remove_krb5_info_files failed.\n"));
}
- sig_term(signum);
+ orderly_shutdown(0);
}
errno_t sdap_install_sigterm_handler(TALLOC_CTX *mem_ctx,