1*822057bfSKyle Evans#!/bin/sh 2*822057bfSKyle Evans 3*822057bfSKyle Evansbase=`basename $0` 4*822057bfSKyle Evans 5*822057bfSKyle Evansecho "1..1" 6*822057bfSKyle Evans 7*822057bfSKyle Evansname="pkill -P <ppid>" 8*822057bfSKyle Evansppid=$$ 9*822057bfSKyle Evanssleep=$(pwd)/sleep.txt 10*822057bfSKyle Evansln -sf /bin/sleep $sleep 11*822057bfSKyle Evans$sleep 5 & 12*822057bfSKyle Evanssleep 0.3 13*822057bfSKyle Evanspkill -f -P $ppid $sleep 14*822057bfSKyle Evansec=$? 15*822057bfSKyle Evanscase $ec in 16*822057bfSKyle Evans0) 17*822057bfSKyle Evans echo "ok - $name" 18*822057bfSKyle Evans ;; 19*822057bfSKyle Evans*) 20*822057bfSKyle Evans echo "not ok - $name" 21*822057bfSKyle Evans ;; 22*822057bfSKyle Evansesac 23*822057bfSKyle Evans 24*822057bfSKyle Evansrm -f $sleep 25