From 3c0e1c64926fed71519e6779c57428fd730a590a Mon Sep 17 00:00:00 2001 From: Francois Pons Date: Fri, 1 Aug 2003 10:05:40 +0000 Subject: shared lock are available with open in read mode. --- urpm.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/urpm.pm b/urpm.pm index 17fa8fc7..c612a0a8 100644 --- a/urpm.pm +++ b/urpm.pm @@ -2485,7 +2485,7 @@ sub shlock_urpmi_db { my ($LOCK_SH, $LOCK_NB) = (1, 4); #- lock urpmi database, but keep lock to wait for an urpmi.update to finish. - open LOCK_FILE, ">$urpm->{statedir}/.LOCK"; + open LOCK_FILE, "$urpm->{statedir}/.LOCK"; flock LOCK_FILE, $LOCK_SH|$LOCK_NB or $urpm->{fatal}(7, N("urpmi database locked")); } sub unlock_urpmi_db { -- cgit v1.2.1