[New-bugs-announce] [issue22367] Please add F_OFD_SETLK, etc support to fcntl.lockf

Andrew Lutomirski report at bugs.python.org
Mon Sep 8 22:18:49 CEST 2014


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 <report at bugs.python.org>
<http://bugs.python.org/issue22367>
_______________________________________


More information about the New-bugs-announce mailing list