CVS: theedge/var/lib/lunar/functions download.lunar,1.36,1.37
elaine at lunar-linux.org
elaine at lunar-linux.org
Sat Dec 13 17:20:59 GMT 2003
Update of /var/cvs/lunar/theedge/var/lib/lunar/functions
In directory dbguin.lunar-linux.org:/tmp/cvs-serv14149
Modified Files:
download.lunar
Log Message:
Fixed /version lget lock bug
Index: download.lunar
===================================================================
RCS file: /var/cvs/lunar/theedge/var/lib/lunar/functions/download.lunar,v
retrieving revision 1.36
retrieving revision 1.37
diff -u -d -r1.36 -r1.37
--- download.lunar 26 Nov 2003 20:52:13 -0000 1.36
+++ download.lunar 13 Dec 2003 17:20:57 -0000 1.37
@@ -340,14 +340,16 @@
lget_lock() {
debug_msg "lget_lock ($@)"
- echo $$ > /var/lock/lgetting.$1
+ mod_v_safe_edit $1
+ echo $$ > /var/lock/lgetting.$MOD_V_SNAME
}
lget_locked() {
debug_msg "lget_locked ($@)"
- if [ -f "/var/lock/lgetting.$1" ] &&
- ps `cat /var/lock/lgetting.$1` | grep -q "lget" ; then
+ mod_v_safe_edit $1
+ if [ -f "/var/lock/lgetting.$MOD_V_SNAME" ] &&
+ ps `cat /var/lock/lgetting.$MOD_V_SNAME` | grep -q "lget" ; then
true
else
false
@@ -357,7 +359,8 @@
lget_unlock() {
debug_msg "lget_unlock ($@)"
- rm -f /var/lock/lgetting.$1 &> /dev/null
+ mod_v_safe_edit $1
+ rm -f /var/lock/lgetting.$MOD_V_SNAME &> /dev/null
}
More information about the Lunar-commits
mailing list