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)
committerStefan Metzmacher <metze@samba.org>
Wed, 31 Dec 2008 10:01:46 +0000 (11:01 +0100)
reinit_after_fork() already calls messaging_reinit()

metze

source3/winbindd/winbindd_dual.c

index 9153585c264c31dd4fef5f4154c96b2cbaee9eab..4f1e92ed7c15a838e7bd8d557b300203ad8d2d22 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);