Changeset 165 for branches/samba-3.0/source/smbd/server.c
- Timestamp:
- Mar 11, 2009, 9:14:55 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/samba-3.0/source/smbd/server.c
r124 r165 300 300 Open the socket communication. 301 301 ****************************************************************************/ 302 303 bool reinit_after_fork(struct messaging_context *msg_ctx, 304 struct event_context *ev_ctx, 305 bool parent_longlived); 302 306 303 307 static BOOL open_sockets_smbd(BOOL is_daemon, BOOL interactive, const char *smb_ports) … … 561 565 False); 562 566 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"); 574 572 } 575 573 576 574 return True; 577 575 } 576 /* The parent doesn't need this socket */ 577 close(smbd_server_fd()); 578 578 579 579 /* Sun May 6 18:56:14 2001 ackley@cs.unm.edu: … … 946 946 947 947 reopen_logs(); 948 948 949 #ifdef __OS2__ 949 950 unsigned long _System DosSetPriority (unsigned long ulScope, unsigned long ulClass, long lDelta, unsigned long ulID); … … 956 957 DEBUG(0,( "Server priority set to PRTYC_FOREGROUNDSERVER\n")); 957 958 #endif 959 958 960 DEBUG(0,( "smbd version %s started.\n", SAMBA_VERSION_STRING)); 959 961 DEBUGADD( 0, ( "%s\n", COPYRIGHT_STARTUP_MESSAGE ) );
Note:
See TracChangeset
for help on using the changeset viewer.