s3:winbindd: make "smbcontrol winbindd validate-cache" reliable again
authorStefan Metzmacher <metze@samba.org>
Thu, 8 Apr 2010 10:45:54 +0000 (12:45 +0200)
committerKarolin Seeger <kseeger@samba.org>
Mon, 17 May 2010 07:50:12 +0000 (09:50 +0200)
commit 73577205cf81644e7fe853eaf3e6459f7f443096
(s3:winbindd: fix problems with SIGCHLD handling (bug #7317))
broke this.

metze
(cherry picked from commit eb9b7d0363669574de8ec380089407890f15eac2)
(cherry picked from commit bc30dc6983835ee376125861a5450975cc5af2ff)

source3/winbindd/winbindd.c

index 19561f4e5ab1a759fed8405ad49d96368249325f..9c676f030300ab7342b3b40406e9ad4760b60a89 100644 (file)
@@ -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,