1# #-- fwd_three.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 9. ../common.sh 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