Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eb697c9
)
load the config file on each connect rather than at startup
author
Andrew Tridgell
<tridge@samba.org>
Wed, 13 May 1998 00:08:03 +0000
(
00:08
+0000)
committer
Andrew Tridgell
<tridge@samba.org>
Wed, 13 May 1998 00:08:03 +0000
(
00:08
+0000)
clientserver.c
patch
|
blob
|
blame
|
history
diff --git
a/clientserver.c
b/clientserver.c
index
71188e9
..
62d049d
100644
(file)
--- 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);