chiark / gitweb /
test-example: Reorder a config to better test CHILDPERSIST
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 1 Oct 2014 22:33:39 +0000 (23:33 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 9 Oct 2014 18:30:00 +0000 (19:30 +0100)
commit6fd38d8d19b0a634e7ca75585e1533c024796f2c
tree7c713e3c42958d21504db85cebca296fdcd8e7fa
parentbc78a2b7c5f6ac9a1b0863dfcf77fba015187acf
test-example: Reorder a config to better test CHILDPERSIST

If we move the polypath comm before the tun netlink, the tun will
already have been set up by the time polypath spawns its privsep
helper.  (Since the entries are processed in reverse order.)  This
means that the CHILDPERSIST phase hook ends up closing the tun fd,
which we can see in strace.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
test-example/inside-polypath.conf