summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorHerb Lewis <herb@samba.org>2000-10-12 19:42:18 +0000
committerHerb Lewis <herb@samba.org>2000-10-12 19:42:18 +0000
commit2a2a93bebec0d40e26860226f64c4964d5224f3b (patch)
treed7b127d760aad07918527a15b9f680570d2ea8ef /source3/smbd
parentd57dc01732e36832649377b2708d1747b0b54e00 (diff)
downloadsamba-2a2a93bebec0d40e26860226f64c4964d5224f3b.tar.gz
samba-2a2a93bebec0d40e26860226f64c4964d5224f3b.tar.bz2
samba-2a2a93bebec0d40e26860226f64c4964d5224f3b.zip
allow "master" smbd to call message_init so it is not killed by messages
sent to it's PID Jeremy or Andrew please check this out for other possible side effects. (This used to be commit f365950e7dafa269ace647ae1cab6201f8ecf67d)
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/server.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/smbd/server.c b/source3/smbd/server.c
index 4442a1f71f..4c136f638b 100644
--- a/source3/smbd/server.c
+++ b/source3/smbd/server.c
@@ -705,6 +705,10 @@ static void usage(char *pname)
pidfile_create("smbd");
}
+ if (!message_init()) {
+ exit(1);
+ }
+
if (!open_sockets(is_daemon,port))
exit(1);
@@ -712,10 +716,6 @@ static void usage(char *pname)
* everything after this point is run after the fork()
*/
- if (!message_init()) {
- exit(1);
- }
-
if (!locking_init(0)) {
exit(1);
}