diff options
author | Stephen Gallagher <sgallagh@redhat.com> | 2010-05-02 08:07:50 -0400 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2010-05-07 16:38:21 -0400 |
commit | 9967a29726b7fd37dfa910807f864be6e7868897 (patch) | |
tree | bbd0d322f5ecfd666ee98e385261591cd50b9884 /src/providers/ipa | |
parent | cdae086732a08b97e7f5e3e5147a985d04730971 (diff) | |
download | sssd_unused-9967a29726b7fd37dfa910807f864be6e7868897.tar.gz sssd_unused-9967a29726b7fd37dfa910807f864be6e7868897.tar.xz sssd_unused-9967a29726b7fd37dfa910807f864be6e7868897.zip |
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.
Diffstat (limited to 'src/providers/ipa')
-rw-r--r-- | src/providers/ipa/ipa_init.c | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/src/providers/ipa/ipa_init.c b/src/providers/ipa/ipa_init.c index 6e0688f0..bd5a9e03 100644 --- a/src/providers/ipa/ipa_init.c +++ b/src/providers/ipa/ipa_init.c @@ -165,7 +165,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; @@ -239,20 +238,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) { |