1#!/bin/sh 2 3base=`basename $0` 4 5echo "1..1" 6 7name="pkill -P <ppid>" 8ppid=$$ 9sleep=$(pwd)/sleep.txt 10ln -sf /bin/sleep $sleep 11$sleep 5 & 12sleep 0.3 13pkill -f -P $ppid $sleep 14ec=$? 15case $ec in 160) 17 echo "ok - $name" 18 ;; 19*) 20 echo "not ok - $name" 21 ;; 22esac 23 24rm -f $sleep 25