New submission from Andrew Lutomirski:

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.

----------
components: Library (Lib)
messages: 226610
nosy: Andrew.Lutomirski
priority: normal
severity: normal
status: open
title: Please add F_OFD_SETLK, etc support to fcntl.lockf
type: enhancement
versions: Python 2.7, Python 3.5

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue22367>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to