summaryrefslogtreecommitdiffstats
path: root/src/providers/data_provider_be.c
diff options
context:
space:
mode:
authorOndrej Kos <okos@redhat.com>2013-01-14 13:56:51 +0100
committerJakub Hrozek <jhrozek@redhat.com>2013-01-30 14:07:21 +0100
commit7f2a82103d8537438470f5d560b5bfd12e52a915 (patch)
tree242430d2d8bf4b61904c36c2ac252bfca6a1edc5 /src/providers/data_provider_be.c
parent49c06899c6b8e06fa0c371dbd8a16ead32c651d9 (diff)
downloadsssd-7f2a82103d8537438470f5d560b5bfd12e52a915.tar.gz
sssd-7f2a82103d8537438470f5d560b5bfd12e52a915.tar.xz
sssd-7f2a82103d8537438470f5d560b5bfd12e52a915.zip
Add common SIGCHLD handling for providers
backport of https://fedorahosted.org/sssd/changeset/6a9bdb6289bb374d203861cef16f312185725cbc
Diffstat (limited to 'src/providers/data_provider_be.c')
-rw-r--r--src/providers/data_provider_be.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/providers/data_provider_be.c b/src/providers/data_provider_be.c
index 7703c2d6..8a72994b 100644
--- a/src/providers/data_provider_be.c
+++ b/src/providers/data_provider_be.c
@@ -42,6 +42,7 @@
#include "sbus/sssd_dbus.h"
#include "providers/dp_backend.h"
#include "providers/fail_over.h"
+#include "providers/child_common.h"
#include "resolv/async_resolv.h"
#include "monitor/monitor_interfaces.h"
@@ -1340,6 +1341,13 @@ int be_process_init(TALLOC_CTX *mem_ctx,
return EIO;
}
+ ret = sss_sigchld_init(ctx, ctx->ev, &ctx->sigchld_ctx);
+ if (ret != EOK) {
+ DEBUG(0, ("Could not initialize sigchld context: [%s]\n",
+ strerror(ret)));
+ return ret;
+ }
+
return EOK;
}