diff options
| author | Gary Guo <gary@garyguo.net> | 2020-05-13 02:43:23 +0100 |
|---|---|---|
| committer | Gary Guo <gary@garyguo.net> | 2020-05-13 02:49:22 +0100 |
| commit | a23dd0d1e6ddfe6624f1c59e9aefcb59e419610d (patch) | |
| tree | ded9b674c04e55dcc7a856241b096c666ac33566 /src/rustllvm/RustWrapper.cpp | |
| parent | 769d12eec1d0bc3708841dfc149d3ec98b04bec6 (diff) | |
| download | rust-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 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
