xref: /netbsd-src/external/bsd/unbound/dist/testdata/fwd_waitudp.tdir/fwd_waitudp.post (revision 924795e69c8bb3f17afd8fcbb799710cc1719dc4)
1# #-- fwd_waitudp.post --#
2# source the master var file when it's there
3[ -f ../.tpkg.var.master ] && source ../.tpkg.var.master
4# source the test var file when it's there
5[ -f .tpkg.var.test ] && source .tpkg.var.test
6#
7# do your teardown here
8. ../common.sh
9
10# kill fwder
11kill_pid $FWD_PID
12
13# find all extra forked testns and kill them.
14pidlist=`fgrep "forked pid:" fwd.log | sed -e 's/forked pid: //'`
15for p in $pidlist; do
16	kill_pid $p
17done
18
19# kill unbound
20kill_pid $UNBOUND_PID
21exit 0
22