9 tty=`ps -x -o tty -p $$ | tail -1`
10 if [ "$tty" = "??" -o "$tty" = "-" ]; then
15 pts/*) ttyshort=`echo $tty | cut -c 5-` ;;
16 *) ttyshort=`echo $tty | cut -c 4-` ;;
19 sleep=$(pwd)/sleep.txt
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"