Have you ever considered extending the functionality of InterProcessLock to retrieve the PID of the currently locking process? Python does not seem to implement this in the fcntl module but one could use F_GETLK directly and pass the appropriate structure for the platform. An example of how to build such structures for different platforms can be found in the cpython tests.
Have you ever considered extending the functionality of
InterProcessLock
to retrieve the PID of the currently locking process? Python does not seem to implement this in thefcntl
module but one could use F_GETLK directly and pass the appropriate structure for the platform. An example of how to build such structures for different platforms can be found in the cpython tests.