diff options
author | Michael Adam <obnox@samba.org> | 2008-03-12 00:54:48 +0100 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2008-03-12 02:12:34 +0100 |
commit | 90fd5082a2084cf2436105938b47591cce6a9f82 (patch) | |
tree | b6198eeaf0b025f6834400b773b514616d55cb3a /source3 | |
parent | a3eae3039d9428f49e029cd1b7fbcbc1ec92f798 (diff) | |
download | samba-90fd5082a2084cf2436105938b47591cce6a9f82.tar.gz samba-90fd5082a2084cf2436105938b47591cce6a9f82.tar.bz2 samba-90fd5082a2084cf2436105938b47591cce6a9f82.zip |
loadparm: add convenience wrapper lp_kill_all_services()
Michael
(This used to be commit 32bfd131e33d06be9dfaef02b57f5401d2bc7639)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/param/loadparm.c | 8 | ||||
-rw-r--r-- | source3/web/swat.c | 2 |
2 files changed, 9 insertions, 1 deletions
diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c index f1bac54251..f02607f875 100644 --- a/source3/param/loadparm.c +++ b/source3/param/loadparm.c @@ -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. ***************************************************************************/ diff --git a/source3/web/swat.c b/source3/web/swat.c index 2cf0eabeed..bb418db04b 100644 --- a/source3/web/swat.c +++ b/source3/web/swat.c @@ -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()); |