1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

Minor speedup of lock test -

Instead of waiting for flock process finish kill the flock process.
This commit is contained in:
Zdenek Kabelac 2010-08-02 13:23:01 +00:00
parent 3015a9ab9c
commit 1342414a8d

View File

@ -33,4 +33,4 @@ flock -w 5 $TESTDIR/var/lock/lvm/P_orphans -c "sleep 10" &
flock_pid=`jobs -p` flock_pid=`jobs -p`
not vgremove --config 'global { wait_for_locks = 0 }' $vg not vgremove --config 'global { wait_for_locks = 0 }' $vg
ps $flock_pid # still running ps $flock_pid # still running
wait $flock_pid kill $flock_pid