diff options
author | Stefan Metzmacher <metze@samba.org> | 2010-04-08 12:45:54 +0200 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2010-05-17 09:50:12 +0200 |
commit | c6c4606dac3035a76ab36233e5b877a984c95ab2 (patch) | |
tree | 0bdaaa0389c2195a0bb8a96697b2890bd53b72a0 | |
parent | c0ba225f50b623e8a0d2f7ecb5e3d9066ee109af (diff) | |
download | samba-c6c4606dac3035a76ab36233e5b877a984c95ab2.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 bc30dc6983835ee376125861a5450975cc5af2ff)
-rw-r--r-- | source3/winbindd/winbindd.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/winbindd/winbindd.c b/source3/winbindd/winbindd.c index 19561f4e5ab..9c676f03030 100644 --- a/source3/winbindd/winbindd.c +++ b/source3/winbindd/winbindd.c @@ -402,6 +402,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, |