]> git.lizzy.rs Git - rust.git/commitdiff
Rollup merge of #72161 - nbdd0121:master, r=cuviper
authorRalf Jung <post@ralfj.de>
Fri, 22 May 2020 09:32:21 +0000 (11:32 +0200)
committerGitHub <noreply@github.com>
Fri, 22 May 2020 09:32:21 +0000 (11:32 +0200)
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


Trivial merge