diff options
Diffstat (limited to 'accel-pppd/ppp/ppp.c')
-rw-r--r-- | accel-pppd/ppp/ppp.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/accel-pppd/ppp/ppp.c b/accel-pppd/ppp/ppp.c index ef8aa36..4f3beb9 100644 --- a/accel-pppd/ppp/ppp.c +++ b/accel-pppd/ppp/ppp.c @@ -19,7 +19,6 @@ #include "ppp.h" #include "ppp_fsm.h" #include "log.h" -#include "fdtrash.h" #include "spinlock.h" #include "mempool.h" @@ -224,9 +223,9 @@ static void destablish_ppp(struct ppp_t *ppp) triton_md_unregister_handler(&ppp->chan_hnd); triton_md_unregister_handler(&ppp->unit_hnd); - fdtrash_add(ppp->unit_fd); - fdtrash_add(ppp->chan_fd); - fdtrash_add(ppp->fd); + close(ppp->unit_fd); + close(ppp->chan_fd); + close(ppp->fd); ppp->unit_fd = -1; ppp->chan_fd = -1; |