From deecc72f6a96153d93dccd547177676bc878a3f3 Mon Sep 17 00:00:00 2001 From: Kozlov Dmitry Date: Mon, 6 Dec 2010 17:33:09 +0300 Subject: switch logs on contexts which dosn't handles ppp too so potential race conditions may be arised --- accel-pptpd/ctrl/pppoe/pppoe.c | 1 + 1 file changed, 1 insertion(+) (limited to 'accel-pptpd/ctrl/pppoe') diff --git a/accel-pptpd/ctrl/pppoe/pppoe.c b/accel-pptpd/ctrl/pppoe/pppoe.c index 839c7169..b5a91895 100644 --- a/accel-pptpd/ctrl/pppoe/pppoe.c +++ b/accel-pptpd/ctrl/pppoe/pppoe.c @@ -1051,6 +1051,7 @@ void pppoe_server_start(const char *ifname, void *cli) } serv->ctx.close = pppoe_serv_close; + serv->ctx.before_switch = log_switch; serv->hnd.fd = sock; serv->hnd.read = pppoe_serv_read; serv->ifname = _strdup(ifname); -- cgit v1.2.3