From 4cdf25e42e344bac2576aca13a1a336cff33f8f5 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 13 May 1998 00:08:03 +0000 Subject: [PATCH] load the config file on each connect rather than at startup --- clientserver.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/clientserver.c b/clientserver.c index 71188e97..62d049d7 100644 --- a/clientserver.c +++ b/clientserver.c @@ -203,6 +203,11 @@ static int start_daemon(int fd) char *motd; int version; int i = -1; + extern char *config_file; + + if (!lp_load(config_file)) { + exit_cleanup(1); + } set_socket_options(fd,"SO_KEEPALIVE"); @@ -261,12 +266,6 @@ static int start_daemon(int fd) int daemon_main(void) { - extern char *config_file; - - if (!lp_load(config_file)) { - exit_cleanup(1); - } - if (is_a_socket(STDIN_FILENO)) { /* we are running via inetd */ return start_daemon(STDIN_FILENO); -- 2.34.1