Debian Codegraph @

testdata/fwd_oneport.tdir/fwd_oneport.post

raw
1 # #-- fwd_oneport.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_pid $FWD_PID
10
11 # find all extra forked testns and kill them.
12 pidlist=`grep -F "forked pid:" fwd.log | sed -e 's/forked pid: //'`
13 for p in $pidlist; do
14 kill_pid $p
15 done
16
17 # kill unbound
18 kill_pid $UNBOUND_PID