summaryrefslogtreecommitdiff
path: root/accel-pppd/ipv6
diff options
context:
space:
mode:
authorDmitry Kozlov <xeb@mail.ru>2014-05-12 13:50:15 +0400
committerDmitry Kozlov <xeb@mail.ru>2014-05-12 13:50:15 +0400
commit0c0bdd363b63319c7484f5cfbe6dd74a15b884be (patch)
tree1e5e4f596347cd80a57af5ca68b37eb27fcd91d5 /accel-pppd/ipv6
parent7466e7f10fb4813a6112682dff13de5fbdd981a7 (diff)
downloadaccel-ppp-0c0bdd363b63319c7484f5cfbe6dd74a15b884be.tar.gz
accel-ppp-0c0bdd363b63319c7484f5cfbe6dd74a15b884be.zip
triton: improved epoll events handling
Diffstat (limited to 'accel-pppd/ipv6')
-rw-r--r--accel-pppd/ipv6/dhcpv6.c3
-rw-r--r--accel-pppd/ipv6/nd.c3
2 files changed, 2 insertions, 4 deletions
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);