ソースを参照

libdpkg: Reset dblockfd on modstatdb_unlock()

This will allow locking again the database after having previously
unlocked it.
Guillem Jover 15 年 前
コミット
8619e6d314
共有1 個のファイルを変更した2 個の追加0 個の削除を含む
  1. 2 0
      lib/dpkg/dbmodify.c

+ 2 - 0
lib/dpkg/dbmodify.c

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