X-Git-Url: https://git.distorted.org.uk/~mdw/secnet/blobdiff_plain/8c57614849a9a071f5ff8e3010d56e42abdc4bd1..eecff7e35bcb1dbde57c380dc13649c3fc579e92:/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)