9 tty=`ps -o tty -p $$ | tail -1`
10 if [ "$tty" = "??" ]; then
15 pts/*) ttyshort=`echo $tty | cut -c 5-` ;;
16 *) ttyshort=`echo $tty | cut -c 4-` ;;
19 sleep=`mktemp /tmp/$base.XXXXXX` || exit 1
20 ln -sf /bin/sleep $sleep
23 pkill -f -t $tty $sleep
30 echo "not ok 1 - $name"
35 pkill -f -t $ttyshort $sleep
42 echo "not ok 2 - $name"