Message226610
| 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:49 | Andrew.Lutomirski | set | recipients:
+ Andrew.Lutomirski |
| 2014年09月08日 20:18:49 | Andrew.Lutomirski | set | messageid: <1410207529.54.0.778133775349.issue22367@psf.upfronthosting.co.za> |
| 2014年09月08日 20:18:49 | Andrew.Lutomirski | link | issue22367 messages |
| 2014年09月08日 20:18:49 | Andrew.Lutomirski | create |
|