From 0c0bdd363b63319c7484f5cfbe6dd74a15b884be Mon Sep 17 00:00:00 2001 From: Dmitry Kozlov Date: Mon, 12 May 2014 13:50:15 +0400 Subject: triton: improved epoll events handling --- accel-pppd/ctrl/pptp/pptp.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'accel-pppd/ctrl/pptp') diff --git a/accel-pppd/ctrl/pptp/pptp.c b/accel-pppd/ctrl/pptp/pptp.c index 46e980e0..92770bf6 100644 --- a/accel-pppd/ctrl/pptp/pptp.c +++ b/accel-pppd/ctrl/pptp/pptp.c @@ -77,8 +77,7 @@ static void disconnect(struct pptp_conn_t *conn) { log_ppp_debug("pptp: disconnect\n"); - triton_md_unregister_handler(&conn->hnd); - close(conn->hnd.fd); + triton_md_unregister_handler(&conn->hnd, 1); if (conn->timeout_timer.tpd) triton_timer_del(&conn->timeout_timer); @@ -704,8 +703,7 @@ static int pptp_connect(struct triton_md_handler_t *h) static void pptp_serv_close(struct triton_context_t *ctx) { struct pptp_serv_t *s=container_of(ctx,typeof(*s),ctx); - triton_md_unregister_handler(&s->hnd); - close(s->hnd.fd); + triton_md_unregister_handler(&s->hnd, 1); triton_context_unregister(ctx); } -- cgit v1.2.3