chiark
/
gitweb
/
~ian
/
secnet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
test-example: Set `system/userid'
[secnet.git]
/
tun.c
diff --git
a/tun.c
b/tun.c
index 2c84ed0dace4d51a35c16071a7926e59859159be..b3c69a2351e0fea272c4fef404c50d585b8159d5 100644
(file)
--- 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);
}