Просмотр исходного кода

libdpkg: Reset dblockfd on modstatdb_unlock()

This will allow locking again the database after having previously
unlocked it.
Guillem Jover лет назад: 15
Родитель
Сommit
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