summaryrefslogtreecommitdiffstats
path: root/src/util
diff options
context:
space:
mode:
authorPetr Cech <pcech@redhat.com>2016-08-04 16:27:40 +0200
committerJakub Hrozek <jhrozek@redhat.com>2016-08-17 16:17:07 +0200
commitb9a0959c274367dcf69bba6b0a942a1682c74f73 (patch)
tree7d8db80580e6d6ba947a0e1a3054d8fe1a1dc1e7 /src/util
parent4313147ab4214037900cbb3ced8a03e492bff02c (diff)
downloadsssd-b9a0959c274367dcf69bba6b0a942a1682c74f73.tar.gz
sssd-b9a0959c274367dcf69bba6b0a942a1682c74f73.tar.xz
sssd-b9a0959c274367dcf69bba6b0a942a1682c74f73.zip
LDAP: Adding SIGTERM signal before SIGKILL
We add better termination of ldap_child. If ldap_child reaches the timeout for termination parent sents SIGTERM signal. Child has 2 seconds for removing temporary file and exit. If it is not sufficient there is SIGKILL send to the child. Resolves: https://fedorahosted.org/sssd/ticket/3106 Reviewed-by: Pavel Březina <pbrezina@redhat.com> Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>
Diffstat (limited to 'src/util')
-rw-r--r--src/util/child_common.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/util/child_common.h b/src/util/child_common.h
index d843cc36d..37116e2a7 100644
--- a/src/util/child_common.h
+++ b/src/util/child_common.h
@@ -35,6 +35,7 @@
#define IN_BUF_SIZE 512
#define CHILD_MSG_CHUNK 256
+#define SIGTERM_TO_SIGKILL_TIME 2
#define CHILD_TIMEOUT_EXIT_CODE 7
struct response {