1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-08-24 09:49:27 +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 903bfcaf4b
commit 5f8a3896dc

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