static void msg_reload_nmbd_services(struct messaging_context *msg, void *private_data, uint32_t msg_type, struct server_id server_id, DATA_BLOB *data) { write_browse_list( 0, True ); dump_all_namelists(); reload_nmbd_services( True ); reopen_logs(); reload_interfaces(0); }
static void sig_hup(int sig) { BlockSignals( True, SIGHUP ); DEBUG( 0, ( "Got SIGHUP dumping debug info.\n" ) ); write_browse_list( 0, True ); dump_all_namelists(); reload_after_sighup = True; BlockSignals(False,SIGHUP); } /* sig_hup */
static void msg_reload_nmbd_services(int msg_type, struct process_id src, void *buf, size_t len, void *private_data) { write_browse_list( 0, True ); dump_all_namelists(); reload_nmbd_services( True ); reopen_logs(); if(buf) { /* We were called from process() */ /* If reload_interfaces() returned True */ /* we need to shutdown if there are no subnets... */ /* pass this info back to process() */ *((BOOL*)buf) = reload_interfaces(0); } }