use new locking mechanism
authorEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Tue, 13 Apr 2004 08:08:58 +0000 (08:08 +0000)
committerEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Tue, 13 Apr 2004 08:08:58 +0000 (08:08 +0000)
git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@1444 94cd875c-1c1d-0410-91d2-eb244daf1a30

util-vserver/scripts/functions

index 8ac1cfc..1a23eb6 100644 (file)
@@ -129,7 +129,7 @@ function lock
 
     sleep 10
     $_LOCKFILE "$1" $tmp $2 &
-    cat <$tmp >/dev/null
+    $tmp 2>/dev/null || return 1
     
     _VS_LOCKS="$! $_VS_LOCKS"
 }