Browse Source

libdpkg: Reset dblockfd on modstatdb_unlock()

This will allow locking again the database after having previously
unlocked it.
Guillem Jover 15 years ago
parent
commit
8619e6d314
1 changed files with 2 additions and 0 deletions
  1. 2 0
      lib/dpkg/dbmodify.c

+ 2 - 0
lib/dpkg/dbmodify.c

@@ -229,6 +229,8 @@ modstatdb_unlock(void)
 {
 {
   /* Unlock. */
   /* Unlock. */
   pop_cleanup(ehflag_normaltidy);
   pop_cleanup(ehflag_normaltidy);
+
+  dblockfd = -1;
 }
 }
 
 
 enum modstatdb_rw
 enum modstatdb_rw