Github user wido commented on the pull request: https://github.com/apache/cloudstack/pull/1408#issuecomment-215346544 @rhtyd: I tested and you are partially right. My test script: https://gist.github.com/wido/a236e9f065cef85b0497990e3d4798e6 When using the 'with open() as X' syntax it doesn't work. My Gist however does if I run it twice: In **terminal #1**: <pre>wido@wido-desktop:~/Desktop$ ./lock-test.py Obtained lock</pre> In **terminal #2**: <pre>wido@wido-desktop:~/Desktop$ ./lock-test.py Failed to obtain lock! wido@wido-desktop:~/Desktop$</pre> I updated the PR again with this change.
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---