From af971fb6cf853c3a5f41aa00918013903aba1ff3 Mon Sep 17 00:00:00 2001 From: Stephen Gallagher Date: Sun, 2 May 2010 08:07:50 -0400 Subject: Properly set up SIGCHLD handlers Instead of having all-purpose SIGCHLD handlers that try to catch every occurrence, we instead create a per-PID handler. This will allow us to specify callbacks to occur when certain children exit. --- src/providers/ipa/ipa_init.c | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'src/providers/ipa/ipa_init.c') diff --git a/src/providers/ipa/ipa_init.c b/src/providers/ipa/ipa_init.c index d2f9b3dc..cb178c87 100644 --- a/src/providers/ipa/ipa_init.c +++ b/src/providers/ipa/ipa_init.c @@ -164,7 +164,6 @@ int sssm_ipa_auth_init(struct be_ctx *bectx, struct ipa_auth_ctx *ipa_auth_ctx; struct krb5_ctx *krb5_auth_ctx; struct sdap_auth_ctx *sdap_auth_ctx; - struct tevent_signal *sige; FILE *debug_filep; unsigned v; int ret; @@ -238,20 +237,6 @@ int sssm_ipa_auth_init(struct be_ctx *bectx, goto done; } - if (ipa_options->id_ctx == NULL) { - DEBUG(9, ("Adding SIGCHLD handler for Kerberos child.\n")); - sige = tevent_add_signal(bectx->ev, krb5_auth_ctx, SIGCHLD, SA_SIGINFO, - child_sig_handler, NULL); - if (sige == NULL) { - DEBUG(1, ("tevent_add_signal failed.\n")); - ret = ENOMEM; - goto done; - } - } else { - DEBUG(9, ("IPA id provider already initialized, " - "assuming that a SIGCHLD handler is already in place.\n")); - } - if (debug_to_file != 0) { ret = open_debug_file_ex("krb5_child", &debug_filep); if (ret != EOK) { -- cgit