summaryrefslogtreecommitdiff
path: root/accel-pptpd/logs
diff options
context:
space:
mode:
authorKozlov Dmitry <dima@server>2010-12-27 15:25:38 +0300
committerKozlov Dmitry <dima@server>2010-12-27 15:25:38 +0300
commit2b34d862111f1fd84cdb9d744ac34c1c933f34da (patch)
tree1e758ddc96689793e1c4c1b55cf3671bb05f2884 /accel-pptpd/logs
parentccaeb500e38d82c37568292d7850b66691793626 (diff)
downloadaccel-ppp-xebd-2b34d862111f1fd84cdb9d744ac34c1c933f34da.tar.gz
accel-ppp-xebd-2b34d862111f1fd84cdb9d744ac34c1c933f34da.zip
implemented partial config reload via SIGUSR1 signal or cli
Diffstat (limited to 'accel-pptpd/logs')
-rw-r--r--accel-pptpd/logs/log_file.c5
-rw-r--r--accel-pptpd/logs/log_pgsql.c4
2 files changed, 4 insertions, 5 deletions
diff --git a/accel-pptpd/logs/log_file.c b/accel-pptpd/logs/log_file.c
index c559d4d..08a6053 100644
--- a/accel-pptpd/logs/log_file.c
+++ b/accel-pptpd/logs/log_file.c
@@ -583,11 +583,11 @@ static void __init init(void)
opt = conf_get_opt("log", "per-user-dir");
if (opt)
- conf_per_user_dir = opt;
+ conf_per_user_dir = _strdup(opt);
opt = conf_get_opt("log", "per-session-dir");
if (opt)
- conf_per_session_dir = opt;
+ conf_per_session_dir = _strdup(opt);
opt = conf_get_opt("log", "per-session");
if (opt && atoi(opt) > 0)
@@ -610,4 +610,3 @@ static void __init init(void)
triton_event_register_handler(EV_PPP_STARTING, (triton_event_func)ev_ppp_starting);
triton_event_register_handler(EV_PPP_AUTHORIZED, (triton_event_func)ev_ppp_authorized);
}
-
diff --git a/accel-pptpd/logs/log_pgsql.c b/accel-pptpd/logs/log_pgsql.c
index fcaa193..af67e0b 100644
--- a/accel-pptpd/logs/log_pgsql.c
+++ b/accel-pptpd/logs/log_pgsql.c
@@ -287,7 +287,7 @@ static void __init init(void)
opt = conf_get_opt("log-pgsql", "conninfo");
if (!opt)
return;
- conf_conninfo = opt;
+ conf_conninfo = _strdup(opt);
opt = conf_get_opt("log-pgsql", "connect-inteval");
if (opt && atoi(opt) > 0)
@@ -295,7 +295,7 @@ static void __init init(void)
opt = conf_get_opt("log-pgsql", "log-query");
if (opt)
- conf_query = opt;
+ conf_query = _strdup(opt);
else {
opt = conf_get_opt("log-pgsql", "log-table");
if (!opt || strlen(opt) > 32)