Lines Matching +full:local +full:- +full:pid
15 local tag
19 tag=${tag%%[a-z.]*}
25 local dflags exe exstatus pid retval status
34 dflags="-x droptags"
39 dflags="-x errtags"
48 if [ -f "$exe" -a -x "$exe" ]; then
50 pid=$!
51 dflags="$dflags ${pid}"
54 dtrace -C -s "${TFILE}" $dflags >$STDOUT 2>$STDERR
57 if [ $status -ne $exstatus ]; then
60 elif [ -n "${tag}" ] && ! grep -Fq " [${tag}] " ${STDERR}; then
65 if [ -n "$pid" ]; then
66 kill -0 $pid >/dev/null 2>&1 && kill -9 $pid >/dev/null 2>&1
73 tst=$TFILE ksh -p "$TFILE" /usr/sbin/dtrace >$STDOUT 2>$STDERR
76 if [ $status -ne $exstatus ]; then
87 if [ $retval -eq 0 ] && \
88 head -n 1 $STDOUT | grep -q -E '^#!/.*ksh$'; then
89 ksh -p $STDOUT
96 [ $# -eq 1 ] || usage
103 kldload -n dtrace_test
108 if [ $RESULT -eq 0 -a -f $EXOUT -a -r $EXOUT ] && \
114 if [ $RESULT -ne 0 ]; then
116 if [ $(stat -f '%z' $STDOUT) -gt 0 ]; then
119 --
121 --
123 --
124 $(diff -u $EXOUT $STDOUT)
125 --
128 if [ $(stat -f '%z' $STDERR) -gt 0 ]; then
131 --
133 --
138 rm -f $STDERR $STDOUT