X-Git-Url: https://git.distorted.org.uk/~mdw/secnet/blobdiff_plain/94a1d5fce6a68fce8216d4b45ef6148d353c2c3a..32654a316b5925914f5e5f481971d47f9728edab:/slip.c diff --git a/slip.c b/slip.c index e555f47..fad0a7e 100644 --- a/slip.c +++ b/slip.c @@ -383,6 +383,9 @@ static void userv_invoke_userv(struct userv *st) } setnonblock(st->txfd); setnonblock(st->rxfd); + + add_hook(PHASE_CHILDPERSIST,childpersist_closefd_hook,&st->txfd); + add_hook(PHASE_CHILDPERSIST,childpersist_closefd_hook,&st->rxfd); } static void userv_kill_userv(struct userv *st)