|
@@ -78,7 +78,6 @@ void lockdatabase(const char *admindir) {
|
|
|
ohshit(_("status database area is locked by another process"));
|
|
ohshit(_("status database area is locked by another process"));
|
|
|
ohshite(_("unable to lock dpkg status database"));
|
|
ohshite(_("unable to lock dpkg status database"));
|
|
|
}
|
|
}
|
|
|
- n= fcntl(dblockfd, F_GETFD);
|
|
|
|
|
- if (n >= 0) fcntl(dblockfd, F_SETFD, n | FD_CLOEXEC);
|
|
|
|
|
|
|
+ fcntl(dblockfd, F_SETFD, FD_CLOEXEC);
|
|
|
push_cleanup(cu_unlockdb,~0, NULL,0, 0);
|
|
push_cleanup(cu_unlockdb,~0, NULL,0, 0);
|
|
|
}
|
|
}
|