1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-10-28 03:27:58 +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`
not vgremove --config 'global { wait_for_locks = 0 }' $vg
ps $flock_pid # still running
wait $flock_pid
kill $flock_pid