X-Git-Url: https://git.distorted.org.uk/~mdw/secnet/blobdiff_plain/94a1d5fce6a68fce8216d4b45ef6148d353c2c3a..32654a316b5925914f5e5f481971d47f9728edab:/tun.c diff --git a/tun.c b/tun.c index 2c84ed0..b3c69a2 100644 --- a/tun.c +++ b/tun.c @@ -442,6 +442,8 @@ static void tun_phase_hook(void *sst, uint32_t newphase) tun_set_route(st,r); } + add_hook(PHASE_CHILDPERSIST,childpersist_closefd_hook,&st->fd); + /* Register for poll() */ register_for_poll(st, tun_beforepoll, tun_afterpoll, st->nl.name); }