'-F' option behaviour was reverted, so revert previous commit.

This commit is contained in:
Pawel Jakub Dawidek 2005-08-25 20:11:39 +00:00
parent 70ffddc463
commit 02a76f3fd7
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=149472
2 changed files with 5 additions and 3 deletions

View File

@ -9,9 +9,10 @@ name="pgrep -F <pidfile>"
pidfile=`mktemp /tmp/$base.XXXXXX` || exit 1
sleep=`mktemp /tmp/$base.XXXXXX` || exit 1
ln -sf /bin/sleep $sleep
daemon -p $pidfile $sleep 5
$sleep 5 &
sleep 0.3
chpid=`cat $pidfile`
chpid=$!
echo $chpid > $pidfile
pid=`pgrep -f -F $pidfile $sleep`
if [ "$pid" = "$chpid" ]; then
echo "ok - $name"

View File

@ -9,8 +9,9 @@ name="pkill -F <pidfile>"
pidfile=`mktemp /tmp/$base.XXXXXX` || exit 1
sleep=`mktemp /tmp/$base.XXXXXX` || exit 1
ln -sf /bin/sleep $sleep
daemon -p $pidfile $sleep 5
$sleep 5 &
sleep 0.3
echo $! > $pidfile
pkill -f -F $pidfile $sleep
ec=$?
case $ec in