diff options
author | Francois Pons <fpons@mandriva.com> | 2003-08-01 10:05:40 +0000 |
---|---|---|
committer | Francois Pons <fpons@mandriva.com> | 2003-08-01 10:05:40 +0000 |
commit | 3c0e1c64926fed71519e6779c57428fd730a590a (patch) | |
tree | 1d69f46d1d7323316189bfcd976c2525331b49f8 | |
parent | 07f5f289174030ffafdf4749a4961b41ff3b0bed (diff) | |
download | urpmi-3c0e1c64926fed71519e6779c57428fd730a590a.tar urpmi-3c0e1c64926fed71519e6779c57428fd730a590a.tar.gz urpmi-3c0e1c64926fed71519e6779c57428fd730a590a.tar.bz2 urpmi-3c0e1c64926fed71519e6779c57428fd730a590a.tar.xz urpmi-3c0e1c64926fed71519e6779c57428fd730a590a.zip |
shared lock are available with open in read mode.
-rw-r--r-- | urpm.pm | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 { |