summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2010-04-08 12:45:54 +0200
committerKarolin Seeger <kseeger@samba.org>2010-05-06 14:08:38 +0200
commitc25bf5ca4a54dd1d7df67d7dbf6ee982faec810e (patch)
tree2c1a6e2546c1fa4035bf920d5564192518f8f343
parent15107a432a67f3829cb8af58d8f3109b0f1a2420 (diff)
downloadsamba-c25bf5ca4a54dd1d7df67d7dbf6ee982faec810e.tar.gz
s3:winbindd: make "smbcontrol winbindd validate-cache" reliable again
commit 73577205cf81644e7fe853eaf3e6459f7f443096 (s3:winbindd: fix problems with SIGCHLD handling (bug #7317)) broke this. metze (cherry picked from commit eb9b7d0363669574de8ec380089407890f15eac2) (cherry picked from commit 7f8741da4e713f657e876f66c3f31455aea8a729)
-rw-r--r--source3/winbindd/winbindd.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/winbindd/winbindd.c b/source3/winbindd/winbindd.c
index ce2f38de5b2..147781f2e0a 100644
--- a/source3/winbindd/winbindd.c
+++ b/source3/winbindd/winbindd.c
@@ -397,6 +397,9 @@ static void winbind_msg_validate_cache(struct messaging_context *msg_ctx,
_exit(0);
}
+ /* install default SIGCHLD handler: validation code uses fork/waitpid */
+ CatchSignal(SIGCHLD, SIG_DFL);
+
ret = (uint8)winbindd_validate_cache_nobackup();
DEBUG(10, ("winbindd_msg_validata_cache: got return value %d\n", ret));
messaging_send_buf(msg_ctx, server_id, MSG_WINBIND_VALIDATE_CACHE, &ret,