1
0
mirror of https://github.com/samba-team/samba.git synced 2025-06-18 19:17:08 +03:00

loadparm: add convenience wrapper lp_kill_all_services()

Michael
This commit is contained in:
Michael Adam 2008-03-12 00:54:48 +01:00
parent 05eda12525
commit 32bfd131e3
2 changed files with 9 additions and 1 deletions

View File

@ -7744,6 +7744,14 @@ void lp_killunused(bool (*snumused) (int))
}
}
/**
* Kill all except autoloaded and usershare services - convenience wrapper
*/
void lp_kill_all_services(void)
{
lp_killunused(NULL);
}
/***************************************************************************
Unload a service.
***************************************************************************/

View File

@ -475,7 +475,7 @@ static int save_reload(int snum)
lp_dump_one(f, False, snum);
fclose(f);
lp_killunused(NULL);
lp_kill_all_services();
if (!load_config(False)) {
printf(_("Can't reload %s"), get_dyn_CONFIGFILE());