diff options
author | Dmitry Kozlov <xeb@mail.ru> | 2010-09-22 22:53:59 +0400 |
---|---|---|
committer | Dmitry Kozlov <xeb@mail.ru> | 2010-09-22 22:53:59 +0400 |
commit | 3e61cb3f8d58f64c8023e95bf74341e6bc61560e (patch) | |
tree | d73a44bf63044e35e8c3b1088598fc29e95a30b9 /accel-pptpd/radius/req.c | |
parent | b96fbc3f966b012720d2b74b1dfd2a0ab95086cf (diff) | |
download | accel-ppp-xebd-3e61cb3f8d58f64c8023e95bf74341e6bc61560e.tar.gz accel-ppp-xebd-3e61cb3f8d58f64c8023e95bf74341e6bc61560e.zip |
log: log_file rewrited to use aio
log: simplified engine
various bug fixes
Diffstat (limited to 'accel-pptpd/radius/req.c')
-rw-r--r-- | accel-pptpd/radius/req.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/accel-pptpd/radius/req.c b/accel-pptpd/radius/req.c index ac41f19..6b812f1 100644 --- a/accel-pptpd/radius/req.c +++ b/accel-pptpd/radius/req.c @@ -173,10 +173,11 @@ out_err: static void req_wakeup(struct rad_req_t *req) { - triton_context_wakeup(req->rpd->ppp->ctrl->ctx); + struct triton_context_t *ctx = req->rpd->ppp->ctrl->ctx; triton_timer_del(&req->timeout); triton_md_unregister_handler(&req->hnd); triton_context_unregister(&req->ctx); + triton_context_wakeup(ctx); } static int rad_req_read(struct triton_md_handler_t *h) { @@ -200,6 +201,8 @@ int rad_req_wait(struct rad_req_t *req, int timeout) req->timeout.expire = rad_req_timeout; triton_context_register(&req->ctx, req->rpd->ppp); + req->ctx.fname=__FILE__; + req->ctx.line=__LINE__; triton_md_register_handler(&req->ctx, &req->hnd); if (triton_md_enable_handler(&req->hnd, MD_MODE_READ)) return -1; |