Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting the PID of the locking process in InterProcessLock #47

Open
samschott opened this issue May 11, 2020 · 0 comments
Open

Getting the PID of the locking process in InterProcessLock #47

samschott opened this issue May 11, 2020 · 0 comments

Comments

@samschott
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant