diff options
author | Dmitry Kozlov <xeb@mail.ru> | 2014-05-12 13:50:15 +0400 |
---|---|---|
committer | Dmitry Kozlov <xeb@mail.ru> | 2014-05-12 13:50:15 +0400 |
commit | 0c0bdd363b63319c7484f5cfbe6dd74a15b884be (patch) | |
tree | 1e5e4f596347cd80a57af5ca68b37eb27fcd91d5 /accel-pppd/ipv6 | |
parent | 7466e7f10fb4813a6112682dff13de5fbdd981a7 (diff) | |
download | accel-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.c | 3 | ||||
-rw-r--r-- | accel-pppd/ipv6/nd.c | 3 |
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); |