]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3:winbindd: we don't need to call messaging_reinit() twice
authorStefan Metzmacher <metze@samba.org>
Mon, 29 Dec 2008 15:31:57 +0000 (16:31 +0100)
committerKarolin Seeger <kseeger@samba.org>
Fri, 2 Jan 2009 11:44:28 +0000 (12:44 +0100)
reinit_after_fork() already calls messaging_reinit()

metze
(cherry picked from commit 429276556a4930fa1bc782904447120950073190)
(cherry picked from commit 6bd2276d426bb92e2fc195ea69aeeb4aa7a574e7)

source/winbindd/winbindd_dual.c

index 4a166946bb52d4455fdad73be62dc7afc00c6a5d..d200cfcf6b608821b46e16e4843088fff2b0d62a 100644 (file)
@@ -1189,13 +1189,6 @@ static bool fork_domain_child(struct winbindd_child *child)
                reopen_logs();
        }
 
-       /*
-        * For clustering, we need to re-init our ctdbd connection after the
-        * fork
-        */
-       if (!NT_STATUS_IS_OK(messaging_reinit(winbind_messaging_context())))
-               exit(1);
-
        /* Don't handle the same messages as our parent. */
        messaging_deregister(winbind_messaging_context(),
                             MSG_SMB_CONF_UPDATED, NULL);