From: Enrico Scholz Date: Tue, 13 Apr 2004 08:08:58 +0000 (+0000) Subject: use new locking mechanism X-Git-Tag: VERSION_0_10~137 X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=99c1b1051ec9a162c49f19eb89862f44895d673d;p=util-vserver.git use new locking mechanism git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@1444 94cd875c-1c1d-0410-91d2-eb244daf1a30 --- diff --git a/util-vserver/scripts/functions b/util-vserver/scripts/functions index 8ac1cfc..1a23eb6 100644 --- a/util-vserver/scripts/functions +++ b/util-vserver/scripts/functions @@ -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" }