summaryrefslogtreecommitdiff
path: root/src/providers/ipa
diff options
context:
space:
mode:
authorSumit Bose <sbose@redhat.com>2010-05-21 11:09:11 +0200
committerStephen Gallagher <sgallagh@redhat.com>2010-05-27 14:44:14 -0400
commitd66944d34d4969c2ba1ed1495e2dda91af665156 (patch)
treeeb2df248bb9d26e50064f3db0635ab9b714311ff /src/providers/ipa
parent2892c3c025882d63559a3adc06f62c2ca4e4c55a (diff)
downloadsssd-d66944d34d4969c2ba1ed1495e2dda91af665156.tar.gz
sssd-d66944d34d4969c2ba1ed1495e2dda91af665156.tar.bz2
sssd-d66944d34d4969c2ba1ed1495e2dda91af665156.zip
Remove signal event if child was terminated by a signal
Diffstat (limited to 'src/providers/ipa')
-rw-r--r--src/providers/ipa/ipa_dyndns.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/providers/ipa/ipa_dyndns.c b/src/providers/ipa/ipa_dyndns.c
index b1edc194..a86c6968 100644
--- a/src/providers/ipa/ipa_dyndns.c
+++ b/src/providers/ipa/ipa_dyndns.c
@@ -514,13 +514,20 @@ static void ipa_dyndns_child_handler(int child_status,
{
struct tevent_req *req = talloc_get_type(pvt, struct tevent_req);
- if (WEXITSTATUS(child_status) != 0) {
+ if (WIFEXITED(child_status) && WEXITSTATUS(child_status) != 0) {
DEBUG(1, ("Dynamic DNS child failed with status [%d]\n",
child_status));
tevent_req_error(req, EIO);
return;
}
+ if WIFSIGNALED(child_status) {
+ DEBUG(1, ("Dynamic DNS child was terminated by signal [%d]\n",
+ WTERMSIG(child_status)));
+ tevent_req_error(req, EIO);
+ return;
+ }
+
tevent_req_done(req);
}