kojira: skip unlocking of child locks
Related: https://pagure.io/koji/issue/2851
This commit is contained in:
parent
7d3f34b476
commit
3849e07ecf
1 changed files with 11 additions and 2 deletions
13
util/kojira
13
util/kojira
|
|
@ -309,10 +309,19 @@ class LoggingLockManager(object):
|
|||
lock.acquire()
|
||||
|
||||
def release_locks(self):
|
||||
# Only parent process should have locked locks in 3.9+, child ones will
|
||||
# be reinitilized to free state
|
||||
# In older pythons, state could be random (and no module_lock)
|
||||
if self.module_lock:
|
||||
logging._releaseLock()
|
||||
try:
|
||||
logging._releaseLock()
|
||||
except RuntimeError:
|
||||
pass
|
||||
for lock in self.locks:
|
||||
lock.release()
|
||||
try:
|
||||
lock.release()
|
||||
except RuntimeError:
|
||||
pass
|
||||
|
||||
|
||||
class RepoManager(object):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue