summaryrefslogtreecommitdiff
path: root/accel-pptpd/logs
diff options
context:
space:
mode:
authorKozlov Dmitry <dima@server>2010-12-06 17:33:09 +0300
committerKozlov Dmitry <dima@server>2010-12-06 17:33:09 +0300
commitdeecc72f6a96153d93dccd547177676bc878a3f3 (patch)
tree72f648a13c2458f2715db2c366f9eb52eeb47623 /accel-pptpd/logs
parentbdf38bdf25400e175d8b20c087c9919199fe8b6e (diff)
downloadaccel-ppp-deecc72f6a96153d93dccd547177676bc878a3f3.tar.gz
accel-ppp-deecc72f6a96153d93dccd547177676bc878a3f3.zip
switch logs on contexts which dosn't handles ppp too so potential race conditions may be arised
Diffstat (limited to 'accel-pptpd/logs')
-rw-r--r--accel-pptpd/logs/log_pgsql.c1
-rw-r--r--accel-pptpd/logs/log_tcp.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/accel-pptpd/logs/log_pgsql.c b/accel-pptpd/logs/log_pgsql.c
index 99a0e82c..fcaa193c 100644
--- a/accel-pptpd/logs/log_pgsql.c
+++ b/accel-pptpd/logs/log_pgsql.c
@@ -23,6 +23,7 @@ static void pgsql_close(struct triton_context_t *ctx);
static struct triton_context_t pgsql_ctx = {
.close = pgsql_close,
+ .before_switch = log_switch,
};
static struct triton_md_handler_t pgsql_hnd;
static struct triton_timer_t connect_timer = {
diff --git a/accel-pptpd/logs/log_tcp.c b/accel-pptpd/logs/log_tcp.c
index 41f4bf4e..306c450f 100644
--- a/accel-pptpd/logs/log_tcp.c
+++ b/accel-pptpd/logs/log_tcp.c
@@ -298,6 +298,7 @@ err:
static struct triton_context_t tcp_ctx ={
.close = log_tcp_close,
+ .before_switch = log_switch,
};
static void __init init(void)