PIDLockFile.acquire() may loop indefinitely
Bug #1472101 reported by
Valentine Sinitsyn
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pylockfile |
Fix Released
|
Undecided
|
Davanum Srinivas (DIMS) |
Bug Description
Steps to reproduce:
1. Create PIDLockFile() instance for some random pid file and aquire() it with no timeout value (e.g. PIDLockFile(
2. Repeat it again for the same file.
Expected result: AlreadyLocked exception is raised.
Actual result: The code loops indefinitely.
The problem is likely around line 84 in pidlockfile.py: if timeout is None, you never branch into the code raising exceptions. And timeout can be None if it wasn't specified both in acquire() and during object construction.
Changed in pylockfile: | |
milestone: | none → 0.11.0 |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Fix proposed to branch: master /review. openstack. org/221123
Review: https:/