haiku/src
Adrien Destugues 8bca37d604 vfs: Bind flock locks to file descriptors
* File locks created by flock should only apply for the file descriptor
  that was used to lock the file. Another fd on the same file should then
  be denied access (calling flock should fail).
* fcntl based locks, however, are in a separate namespace and are global
  to a team.
* This issue was found when running webkitpy test suite, and should close
  ticket #13795.
* Don't use session or team as comparison in release_advisory_lock(), as
  that information might not be available anymore (e.g. when called from
  Team::~Team()). This fixes #14121.

Change-Id: I9efb96cfcefe7e72b0060220c635a665e7e643cc
Co-authored-by: Axel Dörfler <axeld@pinc-software.de>
2018-05-22 20:29:21 +00:00
..
add-ons add-ons/print: Disable probably-bogus warnings on GCC 7. 2018-05-21 20:51:23 -04:00
apps build: define architectureObject as local variable. 2018-05-20 13:19:39 +02:00
bin Fix catching polymorphic type by value 2018-05-16 13:49:46 +00:00
build libroot_build: Properly remap fs_attr_* functions. 2018-04-29 17:25:18 +00:00
data x86,x86_64: remove dependency on libavdevice. 2018-03-09 18:47:28 +01:00
kits style fixes 2018-05-17 22:23:36 +02:00
libs iconv: Fix the build on GCC6+. 2018-05-19 20:35:33 -04:00
preferences Media preference: Replace strncpy with strlcpy 2018-05-21 06:59:30 +00:00
servers Fix calling abs(unsigned) 2018-05-20 20:29:16 +00:00
system vfs: Bind flock locks to file descriptors 2018-05-22 20:29:21 +00:00
tests launch_daemon: Added basic logging facility 2018-04-25 10:10:43 +02:00
tools build: Cleanup of libgnuregex usage. 2018-03-07 18:04:31 -05:00
Jamfile Interface Guidelines: migrate to docs/, use DocBookCSS. 2015-02-12 17:08:04 -05:00