From ab14e19c6171b1f5fb84ae14ebfccb3a3c1c186b Mon Sep 17 00:00:00 2001 From: Julian Andres Klode Date: Fri, 10 May 2019 12:14:59 +0200 Subject: Unlock dpkg locks in reverse locking order We need to unlock in the reverse order of locking in order to get useful behavior. LP: #1829860 --- apt-pkg/deb/debsystem.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apt-pkg/deb') diff --git a/apt-pkg/deb/debsystem.cc b/apt-pkg/deb/debsystem.cc index 5df6c58a1..0c7e9ff39 100644 --- a/apt-pkg/deb/debsystem.cc +++ b/apt-pkg/deb/debsystem.cc @@ -153,8 +153,8 @@ bool debSystem::UnLock(bool NoErrors) return _error->Error(_("Not locked")); if (--d->LockCount == 0) { - close(d->FrontendLockFD); close(d->LockFD); + close(d->FrontendLockFD); d->LockCount = 0; } -- cgit v1.2.3-70-g09d2