'-F' option behaviour was reverted, so revert previous commit.
This commit is contained in:
parent
70ffddc463
commit
02a76f3fd7
@ -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"
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user