git.samba.org
/
obnox
/
samba
/
samba-obnox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2a76d77
)
s3:nmbd: do a very early cluster probe when starting nmbd.
master-clustering-wip
author
Michael Adam
<obnox@samba.org>
Thu, 17 Oct 2013 13:19:41 +0000
(15:19 +0200)
committer
Michael Adam
<obnox@samba.org>
Thu, 17 Oct 2013 13:51:42 +0000
(15:51 +0200)
Just as for smbd and winbindd
Signed-off-by: Michael Adam <obnox@samba.org>
source3/nmbd/nmbd.c
patch
|
blob
|
history
diff --git
a/source3/nmbd/nmbd.c
b/source3/nmbd/nmbd.c
index ec0e7d098f00fcc32fbda3a7b746437bb8122248..f31de08d53c764d52c6b82629429fc3c25fa50ff 100644
(file)
--- 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;