This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Andrew.Lutomirski
Recipients Andrew.Lutomirski
Date 2014-09-08.20:18:49
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1410207529.54.0.778133775349.issue22367@psf.upfronthosting.co.za>
In-reply-to
Content
Linux 3.15 and newer support a vastly superior API for file locking, in which locks are owned by open file descriptions instead of by processes.  This is how everyone seems to expect POSIX locks to work, but now they can finally work that way.

Please add some interface to these locks to fcntl.lockf.  One option would be to use them by default and to fall back to standard POSIX locks if they're not available.  I don't know whether this would break existing code.

See http://man7.org/linux/man-pages/man2/fcntl.2.html for details.
History
Date User Action Args
2014-09-08 20:18:49Andrew.Lutomirskisetrecipients: + Andrew.Lutomirski
2014-09-08 20:18:49Andrew.Lutomirskisetmessageid: <1410207529.54.0.778133775349.issue22367@psf.upfronthosting.co.za>
2014-09-08 20:18:49Andrew.Lutomirskilinkissue22367 messages
2014-09-08 20:18:49Andrew.Lutomirskicreate