summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
authorJames Peach <jpeach@samba.org>2007-01-23 04:12:51 +0000
committerJames Peach <jpeach@samba.org>2007-01-23 04:12:51 +0000
commitdce35fef5e0d6cb1039845268e113673b634ff4e (patch)
tree4bdada11147e6dff9721d2368b0a4c96df66ae0b /source
parentcd33d1ae6ec62bfb24236e152f1a45d7b993249a (diff)
downloadsamba-dce35fef5e0d6cb1039845268e113673b634ff4e.tar.gz
samba-dce35fef5e0d6cb1039845268e113673b634ff4e.tar.xz
samba-dce35fef5e0d6cb1039845268e113673b634ff4e.zip
r20966: Only attempt to reload the config file atfer the fork point if we
are in daemon mode. If we are in inetd mode, there's really no point in rechecking it so soon.
Diffstat (limited to 'source')
-rw-r--r--source/smbd/server.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/source/smbd/server.c b/source/smbd/server.c
index e2f73285b3d..0bb4ad5b04e 100644
--- a/source/smbd/server.c
+++ b/source/smbd/server.c
@@ -1065,8 +1065,12 @@ extern void build_options(BOOL screen);
init_modules();
- /* possibly reload the services file. */
- reload_services(True);
+ /* Possibly reload the services file. Only worth doing in
+ * daemon mode. In inetd mode, we know we only just loaded this.
+ */
+ if (is_daemon) {
+ reload_services(True);
+ }
if (!init_account_policy()) {
DEBUG(0,("Could not open account policy tdb.\n"));