chiark / gitweb /
fds etc.: Support non-forking persistent children
[secnet.git] / slip.c
diff --git a/slip.c b/slip.c
index e555f471218b710b12ecbe35a075ec0660533cd1..fad0a7ee394fa2a764e9853129f68cc19dac55b8 100644 (file)
--- a/slip.c
+++ b/slip.c
@@ -383,6 +383,9 @@ static void userv_invoke_userv(struct userv *st)
     }
     setnonblock(st->txfd);
     setnonblock(st->rxfd);
     }
     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)
 }
 
 static void userv_kill_userv(struct userv *st)