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/ipv6/dhcpv6.c | 3 +-- accel-pppd/ipv6/nd.c | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) (limited to 'accel-pppd/ipv6') diff --git a/accel-pppd/ipv6/dhcpv6.c b/accel-pppd/ipv6/dhcpv6.c index 5c6d1a52..809496e8 100644 --- a/accel-pppd/ipv6/dhcpv6.c +++ b/accel-pppd/ipv6/dhcpv6.c @@ -796,8 +796,7 @@ static int dhcpv6_read(struct triton_md_handler_t *h) static void dhcpv6_close(struct triton_context_t *ctx) { - triton_md_unregister_handler(&dhcpv6_hnd); - close(dhcpv6_hnd.fd); + triton_md_unregister_handler(&dhcpv6_hnd, 1); triton_context_unregister(ctx); } diff --git a/accel-pppd/ipv6/nd.c b/accel-pppd/ipv6/nd.c index eeaef7a8..d10d4b89 100644 --- a/accel-pppd/ipv6/nd.c +++ b/accel-pppd/ipv6/nd.c @@ -375,8 +375,7 @@ static void ev_ses_finishing(struct ap_session *ses) if (h->timer.tpd) triton_timer_del(&h->timer); - triton_md_unregister_handler(&h->hnd); - close(h->hnd.fd); + triton_md_unregister_handler(&h->hnd, 1); list_del(&h->pd.entry); -- cgit v1.2.3