Module rustc_data_structures::flock::linux
source · [−]Expand description
We use flock
rather than fcntl
on Linux, because WSL1 does not support
fcntl
-style advisory locks properly (rust-lang/rust#72157). For other Unix
targets we still use fcntl
because it’s more portable than flock
.