]> git.samba.org - samba.git/blobdiff - source3/smbd/server.c
r23410: Merge the core of the cluster code.
[samba.git] / source3 / smbd / server.c
index e95f3cf4a2b803c8a30fd5c1a77cb0d91b32a754..98b9fb86263dbcd10d147fb67986059382defaf8 100644 (file)
@@ -1112,6 +1112,13 @@ extern void build_options(BOOL screen);
        /* Setup aio signal handler. */
        initialize_async_io_handler();
 
+       /*
+        * For clustering, we need to re-init our ctdbd connection after the
+        * fork
+        */
+       if (!NT_STATUS_IS_OK(messaging_reinit(smbd_messaging_context())))
+               exit(1);
+
        /* register our message handlers */
        messaging_register(smbd_messaging_context(), NULL,
                           MSG_SMB_FORCE_TDIS, msg_force_tdis);