Changeset 158 for branches/samba-3.0/source/nsswitch/winbindd.c
- Timestamp:
- Sep 30, 2008, 7:14:08 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/samba-3.0/source/nsswitch/winbindd.c
r140 r158 47 47 /* Reload configuration */ 48 48 49 static BOOL reload_services_file( void)49 static BOOL reload_services_file(const char *logfile) 50 50 { 51 51 BOOL ret; … … 62 62 reopen_logs(); 63 63 ret = lp_load(dyn_CONFIGFILE,False,False,True,True); 64 65 /* if this is a child, restore the logfile to the special 66 name - <domain>, idmap, etc. */ 67 if (logfile && *logfile) 68 lp_set_logfile(logfile); 64 69 65 70 reopen_logs(); … … 189 194 /* Flush various caches */ 190 195 flush_caches(); 191 reload_services_file( );196 reload_services_file((const char *) private_data); 192 197 } 193 198 … … 727 732 728 733 /* check if HUP has been received and reload files */ 729 void winbind_check_sighup( void)734 void winbind_check_sighup(const char *logfile) 730 735 { 731 736 if (do_sighup) { … … 733 738 DEBUG(3, ("got SIGHUP\n")); 734 739 735 msg_reload_services(MSG_SMB_CONF_UPDATED, pid_to_procid(0), NULL, 0, NULL);740 msg_reload_services(MSG_SMB_CONF_UPDATED, pid_to_procid(0), NULL, 0, logfile); 736 741 do_sighup = False; 737 742 } … … 910 915 911 916 winbind_check_sigterm(true); 912 winbind_check_sighup( );917 winbind_check_sighup(NULL); 913 918 914 919 if (do_sigusr2) { … … 1008 1013 COPYRIGHT_STARTUP_MESSAGE) ); 1009 1014 1010 if (!reload_services_file( )) {1015 if (!reload_services_file(NULL)) { 1011 1016 DEBUG(0, ("error opening config file\n")); 1012 1017 exit(1);
Note:
See TracChangeset
for help on using the changeset viewer.