diff options
author | Andrew Tridgell <tridge@samba.org> | 1998-11-04 03:14:22 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 1998-11-04 03:14:22 +0000 |
commit | 81791cfccb89cde245a335d5df223c8a668030b0 (patch) | |
tree | 5f5ffa393ab75b1e6392e4b9f8f155970d6da5c7 /loadparm.c | |
parent | 2fb27e9146917a268a578e02e395adba331f65e5 (diff) | |
download | android_external_rsync-81791cfccb89cde245a335d5df223c8a668030b0.tar.gz android_external_rsync-81791cfccb89cde245a335d5df223c8a668030b0.tar.bz2 android_external_rsync-81791cfccb89cde245a335d5df223c8a668030b0.zip |
added timeout option in rsyncd.conf
Diffstat (limited to 'loadparm.c')
-rw-r--r-- | loadparm.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -130,6 +130,7 @@ typedef struct char *exclude; char *exclude_from; char *log_format; + int timeout; } service; @@ -152,6 +153,7 @@ static service sDefault = NULL, /* exclude */ NULL, /* exclude from */ "%o %h [%a] %m (%u) %f %l", /* log format */ + 0 /* timeout */ }; @@ -242,6 +244,7 @@ static struct parm_struct parm_table[] = {"log file", P_STRING, P_GLOBAL, &Globals.log_file, NULL, 0}, {"pid file", P_STRING, P_GLOBAL, &Globals.pid_file, NULL, 0}, + {"timeout", P_INTEGER, P_LOCAL, &sDefault.timeout, NULL, 0}, {"name", P_STRING, P_LOCAL, &sDefault.name, NULL, 0}, {"comment", P_STRING, P_LOCAL, &sDefault.comment, NULL, 0}, {"path", P_STRING, P_LOCAL, &sDefault.path, NULL, 0}, @@ -330,6 +333,7 @@ FN_LOCAL_STRING(lp_secrets_file, secrets_file) FN_LOCAL_STRING(lp_exclude, exclude) FN_LOCAL_STRING(lp_exclude_from, exclude_from) FN_LOCAL_STRING(lp_log_format, log_format) +FN_LOCAL_INTEGER(lp_timeout, timeout) /* local prototypes */ static int strwicmp( char *psz1, char *psz2 ); |