From 2e2fcabb0aea7317fb81f74e29198518ef4c735a Mon Sep 17 00:00:00 2001 From: Jaromil Date: Mon, 23 May 2011 22:28:22 +0200 Subject: [PATCH] fix to close a tomb that is open twice on the same mountpoint --- src/tomb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/tomb b/src/tomb index 9922e36..1d67d45 100755 --- a/src/tomb +++ b/src/tomb @@ -763,6 +763,9 @@ umount_tomb() { fi + # avoid block when the same tomb is mounted, take only the first + for tm in ${(f)tombmount}; do tombmount=${tm}; break; done + func "tomb close argument: $1" func "name:\t$tombname" func "mount:\t$tombmount"