diff options
author | Michael Adam <obnox@samba.org> | 2013-10-17 15:19:41 +0200 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2013-10-18 01:17:14 +0200 |
commit | 01966190ac438180e1d1129beaa02d30f58420e9 (patch) | |
tree | 155e869cdfffcdb53c0bb9382a8dd32d18d00f6d | |
parent | 5eae612c724339b225de8be9057dab4043a625a5 (diff) | |
download | samba-01966190ac438180e1d1129beaa02d30f58420e9.tar.gz samba-01966190ac438180e1d1129beaa02d30f58420e9.tar.bz2 samba-01966190ac438180e1d1129beaa02d30f58420e9.zip |
s3:nmbd: do a very early cluster probe when starting nmbd.
Just as for smbd and winbindd
Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
Autobuild-User(master): Michael Adam <obnox@samba.org>
Autobuild-Date(master): Fri Oct 18 01:17:14 CEST 2013 on sn-devel-104
-rw-r--r-- | source3/nmbd/nmbd.c | 5 |
1 files changed, 5 insertions, 0 deletions
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; |