diff options
author | Kozlov Dmitry <xeb@mail.ru> | 2012-05-28 23:09:27 +0400 |
---|---|---|
committer | Kozlov Dmitry <xeb@mail.ru> | 2012-05-28 23:09:27 +0400 |
commit | 9ae4a0151805229face3385e6c966de90c7fec29 (patch) | |
tree | fbe668f826c9b24c8404ad77ebba7728803ebb4b /accel-pppd/ppp | |
parent | 0a823d8d044f023a8fbe388e1b5235b660c5127b (diff) | |
download | accel-ppp-xebd-9ae4a0151805229face3385e6c966de90c7fec29.tar.gz accel-ppp-xebd-9ae4a0151805229face3385e6c966de90c7fec29.zip |
implemented delayed fd close (speeds up session termination process)
Diffstat (limited to 'accel-pppd/ppp')
-rw-r--r-- | accel-pppd/ppp/ppp.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/accel-pppd/ppp/ppp.c b/accel-pppd/ppp/ppp.c index 4f3beb9..ef8aa36 100644 --- a/accel-pppd/ppp/ppp.c +++ b/accel-pppd/ppp/ppp.c @@ -19,6 +19,7 @@ #include "ppp.h" #include "ppp_fsm.h" #include "log.h" +#include "fdtrash.h" #include "spinlock.h" #include "mempool.h" @@ -223,9 +224,9 @@ static void destablish_ppp(struct ppp_t *ppp) triton_md_unregister_handler(&ppp->chan_hnd); triton_md_unregister_handler(&ppp->unit_hnd); - close(ppp->unit_fd); - close(ppp->chan_fd); - close(ppp->fd); + fdtrash_add(ppp->unit_fd); + fdtrash_add(ppp->chan_fd); + fdtrash_add(ppp->fd); ppp->unit_fd = -1; ppp->chan_fd = -1; |