Commit Graph

1 Commits

Author SHA1 Message Date
Petr Kubat
3a3ae67b51 Try looking at libdb's env lock details via /proc/locks during env_attach
As flock-style locks have no way to check whether another lock on the file is held by the current process
and is safe for libdb to access the its environment (in read-mode only), a helper function that parses
/proc/locks for this information has been added.
Additionally, db-5.3.28-rpm-lock-check.patch has been modified to use the helper function in order for libdb
to not have to leak file descriptors while checking for rpm's transaction lock when accessing rpm's environment.
2017-06-26 08:46:48 +02:00