allow "master" smbd to call message_init so it is not killed by messages
authorHerb Lewis <herb@samba.org>
Thu, 12 Oct 2000 19:42:18 +0000 (19:42 +0000)
committerHerb Lewis <herb@samba.org>
Thu, 12 Oct 2000 19:42:18 +0000 (19:42 +0000)
sent to it's PID

Jeremy or Andrew please check this out for other possible side effects.
(This used to be commit f365950e7dafa269ace647ae1cab6201f8ecf67d)

source3/smbd/server.c

index 4442a1f71f6b21dfba3c0e5a79dd67cef6bfd565..4c136f638b678739744577c16629175f5e8a3e6a 100644 (file)
@@ -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);
        }