about summary refs log tree commit diff
path: root/library/std/src/sys/windows/stack_overflow_uwp.rs
diff options
context:
space:
mode:
authorGary Guo <gary@garyguo.net>2020-05-13 02:43:23 +0100
committerGary Guo <gary@garyguo.net>2020-05-13 02:49:22 +0100
commita23dd0d1e6ddfe6624f1c59e9aefcb59e419610d (patch)
treeded9b674c04e55dcc7a856241b096c666ac33566 /library/std/src/sys/windows/stack_overflow_uwp.rs
parent769d12eec1d0bc3708841dfc149d3ec98b04bec6 (diff)
downloadrust-a23dd0d1e6ddfe6624f1c59e9aefcb59e419610d.tar.gz
rust-a23dd0d1e6ddfe6624f1c59e9aefcb59e419610d.zip
Replace fcntl-based file lock with flock
WSL1 does not support `fcntl`-based lock and will always report success,
therefore creating a race condition when multiple rustc processes are
modifying shared data such as `search-index.js`. WSL1 does however
support `flock`.

`flock` is supported by all unix-like platforms. The only caveat is that
Linux 2.6.11 or earlier does not support `flock` on NFS mounts, but as
the minimum supported Linux version is 2.6.18, it is not an issue.

Fixes #72157
Diffstat (limited to 'library/std/src/sys/windows/stack_overflow_uwp.rs')
0 files changed, 0 insertions, 0 deletions