From 01966190ac438180e1d1129beaa02d30f58420e9 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Thu, 17 Oct 2013 15:19:41 +0200 Subject: [PATCH] s3:nmbd: do a very early cluster probe when starting nmbd. Just as for smbd and winbindd Signed-off-by: Michael Adam Reviewed-by: Volker Lendecke Autobuild-User(master): Michael Adam Autobuild-Date(master): Fri Oct 18 01:17:14 CEST 2013 on sn-devel-104 --- source3/nmbd/nmbd.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/source3/nmbd/nmbd.c b/source3/nmbd/nmbd.c index ec0e7d098f..f31de08d53 100644 --- a/source3/nmbd/nmbd.c +++ b/source3/nmbd/nmbd.c @@ -26,6 +26,7 @@ #include "serverid.h" #include "messages.h" #include "../lib/util/pidfile.h" +#include "util_cluster.h" int ClientNMB = -1; int ClientDGRAM = -1; @@ -917,6 +918,10 @@ static bool open_sockets(bool isdaemon, int port) exit(1); } + if (!cluster_probe_ok()) { + exit(1); + } + msg = messaging_init(NULL, server_event_context()); if (msg == NULL) { return 1; -- 2.34.1