summaryrefslogtreecommitdiff
path: root/accel-pppd/cli
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/cli
parent7466e7f10fb4813a6112682dff13de5fbdd981a7 (diff)
downloadaccel-ppp-0c0bdd363b63319c7484f5cfbe6dd74a15b884be.tar.gz
accel-ppp-0c0bdd363b63319c7484f5cfbe6dd74a15b884be.zip
triton: improved epoll events handling
Diffstat (limited to 'accel-pppd/cli')
-rw-r--r--accel-pppd/cli/tcp.c6
-rw-r--r--accel-pppd/cli/telnet.c6
2 files changed, 4 insertions, 8 deletions
diff --git a/accel-pppd/cli/tcp.c b/accel-pppd/cli/tcp.c
index 48fa01a2..4ec49505 100644
--- a/accel-pppd/cli/tcp.c
+++ b/accel-pppd/cli/tcp.c
@@ -54,8 +54,7 @@ static void disconnect(struct tcp_client_t *cln)
list_del(&cln->entry);
- triton_md_unregister_handler(&cln->hnd);
- close(cln->hnd.fd);
+ triton_md_unregister_handler(&cln->hnd, 1);
if (cln->xmit_buf)
_free(cln->xmit_buf);
@@ -283,8 +282,7 @@ static void serv_close(struct triton_context_t *ctx)
disconnect(cln);
}
- triton_md_unregister_handler(&serv_hnd);
- close(serv_hnd.fd);
+ triton_md_unregister_handler(&serv_hnd, 1);
triton_context_unregister(ctx);
}
diff --git a/accel-pppd/cli/telnet.c b/accel-pppd/cli/telnet.c
index 58d0310a..fb211ea0 100644
--- a/accel-pppd/cli/telnet.c
+++ b/accel-pppd/cli/telnet.c
@@ -85,8 +85,7 @@ static void disconnect(struct telnet_client_t *cln)
list_del(&cln->entry);
- triton_md_unregister_handler(&cln->hnd);
- close(cln->hnd.fd);
+ triton_md_unregister_handler(&cln->hnd, 1);
if (cln->xmit_buf)
_free(cln->xmit_buf);
@@ -626,8 +625,7 @@ static void serv_close(struct triton_context_t *ctx)
disconnect(cln);
}
- triton_md_unregister_handler(&serv_hnd);
- close(serv_hnd.fd);
+ triton_md_unregister_handler(&serv_hnd, 1);
triton_context_unregister(ctx);
}