We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 564ebbb commit a05acbfCopy full SHA for a05acbf
src/librustc_data_structures/flock.rs
@@ -12,6 +12,11 @@ use std::io;
12
use std::path::Path;
13
14
cfg_if! {
15
+ // We use `flock` rather than `fcntl` on Linux, because WSL1 does not support
16
+ // `fcntl`-style advisory locks properly (rust-lang/rust#72157).
17
+ //
18
+ // For other Unix targets we still use `fcntl` because it's more portable than
19
+ // `flock`.
20
if #[cfg(target_os = "linux")] {
21
use std::os::unix::prelude::*;
22
0 commit comments