7 name="pgrep -LF <pidfile>"
8 pidfile=$(pwd)/pidfile.txt
10 ln -sf /bin/sleep $sleep
11 daemon -p $pidfile $sleep 5
14 pid=`pgrep -f -L -F $pidfile $sleep`
15 if [ "$pid" = "$chpid" ]; then
18 echo "not ok 1 - $name"
22 # Be sure we cannot find process which pidfile is not locked.
26 echo $chpid > $pidfile
27 pgrep -f -L -F $pidfile $sleep 2>/dev/null
31 echo "not ok 2 - $name"