tdb init routines

Herb Lewis herb at chomps.engr.sgi.com
Thu Apr 12 18:03:21 GMT 2001


Why are all these tdb's initialized after the fork? Here is the code
from server.c. This will cause smbstatus to error out until at least
one client tries to connect and spwans a new smbd that will then do
the init calls. The locking_init is the one smbstatus needs.

        if (!open_sockets(is_daemon,port))
                exit(1);

        /*
         * everything after this point is run after the fork()
         */

        if (!locking_init(0)) {
                exit(1);
        }

        if (!print_backend_init()) {
                exit(1);
        }

        if (!share_info_db_init()) {
                exit(1);
        }

        if(!initialize_password_db()) {
                exit(1);
        }


-- 
======================================================================
Herb Lewis                               Silicon Graphics 
Networking Engineer                      1600 Amphitheatre Pkwy MS-510
Strategic Software Organization          Mountain View, CA  94043-1351
herb at sgi.com                             Tel: 650-933-2177
http://www.sgi.com                       Fax: 650-932-2177          
======================================================================




More information about the samba-technical mailing list