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

No way to get lock sequence number without exposing internals #249

Open
garbled1 opened this issue Aug 11, 2017 · 0 comments
Open

No way to get lock sequence number without exposing internals #249

garbled1 opened this issue Aug 11, 2017 · 0 comments

Comments

@garbled1
Copy link

Need a function or similar to get the lock sequence number when acquiring a lock. If you want to do something like a shell script that utilizes the lock, you can't:

#!/bin/bash
SEQ=$(take_lock.py)
do_something_that_needs_locking
release_lock.py -s ${SEQ}

Currently I do this by printing lock._sequence, but that is obviously bad form. Would like lock.get_sequence() or similar please.

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