Ignore:
Timestamp:
Mar 11, 2009, 9:14:55 AM (16 years ago)
Author:
Paul Smedley
Message:

Add 'missing' 3.0.34 diffs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/samba-3.0/source/smbd/server.c

    r124 r165  
    300300 Open the socket communication.
    301301****************************************************************************/
     302
     303bool reinit_after_fork(struct messaging_context *msg_ctx,
     304                        struct event_context *ev_ctx,
     305                        bool parent_longlived);
    302306
    303307static BOOL open_sockets_smbd(BOOL is_daemon, BOOL interactive, const char *smb_ports)
     
    561565                                                        False);
    562566                               
    563                                 /* Reset the state of the random
    564                                  * number generation system, so
    565                                  * children do not get the same random
    566                                  * numbers as each other */
    567 
    568                                 set_need_random_reseed();
    569                                 /* tdb needs special fork handling - remove
    570                                  * CLEAR_IF_FIRST flags */
    571                                 if (tdb_reopen_all(1) == -1) {
    572                                         DEBUG(0,("tdb_reopen_all failed.\n"));
    573                                         smb_panic("tdb_reopen_all failed.");
     567                                if (!reinit_after_fork(smbd_messaging_context(),
     568                                                       smbd_event_context(),
     569                                                       true)) {
     570                                        DEBUG(0, ("reinit_after_fork failed.\n"));
     571                                        smb_panic("reinit_after_fork failed.\n");
    574572                                }
    575573
    576574                                return True;
    577575                        }
     576                        /* The parent doesn't need this socket */
     577                        close(smbd_server_fd());
    578578
    579579                        /* Sun May 6 18:56:14 2001 ackley@cs.unm.edu:
     
    946946
    947947        reopen_logs();
     948
    948949#ifdef __OS2__
    949950        unsigned long  _System DosSetPriority (unsigned long  ulScope, unsigned long  ulClass, long lDelta, unsigned long ulID);
     
    956957        DEBUG(0,( "Server priority set to PRTYC_FOREGROUNDSERVER\n"));
    957958#endif
     959
    958960        DEBUG(0,( "smbd version %s started.\n", SAMBA_VERSION_STRING));
    959961        DEBUGADD( 0, ( "%s\n", COPYRIGHT_STARTUP_MESSAGE ) );
Note: See TracChangeset for help on using the changeset viewer.