summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillem Jover <guillem@debian.org>2011-03-13 07:38:03 +0100
committerGuillem Jover <guillem@debian.org>2011-03-14 07:21:55 +0100
commit8619e6d31486b874f8f2f2cdb34e66704d26a6a0 (patch)
tree498877086cac85ece5b5e6d59d72675a650d25fd
parent6c9093777f6121dc8c2ee3be44d2937402f3c028 (diff)
downloaddpkg-8619e6d31486b874f8f2f2cdb34e66704d26a6a0.tar.gz
libdpkg: Reset dblockfd on modstatdb_unlock()
This will allow locking again the database after having previously unlocked it.
-rw-r--r--lib/dpkg/dbmodify.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/dpkg/dbmodify.c b/lib/dpkg/dbmodify.c
index f825bedb1..2bb5465a1 100644
--- a/lib/dpkg/dbmodify.c
+++ b/lib/dpkg/dbmodify.c
@@ -229,6 +229,8 @@ modstatdb_unlock(void)
{
/* Unlock. */
pop_cleanup(ehflag_normaltidy);
+
+ dblockfd = -1;
}
enum modstatdb_rw