xref: /netbsd-src/external/bsd/unbound/dist/testdata/fwd_udptmout.tdir/fwd_udptmout.post (revision 2f62cc9c12bc202c40224f32c879f81443fee079)
1# #-- fwd_udptmout.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# kill fwder
10kill_pid $FWD_PID
11
12# find all extra forked testns and kill them.
13pidlist=`fgrep "forked pid:" fwd.log | sed -e 's/forked pid: //'`
14for p in $pidlist; do
15	kill_pid $p
16done
17
18# kill unbound
19kill_pid $UNBOUND_PID
20