We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 30ebc17 + 7e3e9b2 commit 3b4cb7cCopy full SHA for 3b4cb7c
src/cargo/util/flock.rs
@@ -271,10 +271,11 @@ fn acquire(config: &Config,
271
match try() {
272
Ok(()) => return Ok(()),
273
274
- // Like above, where we ignore file locking on NFS mounts on Linux, we
275
- // do the same on OSX here. Note that ENOTSUP is an OSX_specific
276
- // constant.
277
- #[cfg(target_os = "macos")]
+ // In addition to ignoring NFS which is commonly not working we also
+ // just ignore locking on filesystems that look like they don't
+ // implement file locking. We detect that here via the return value of
+ // locking (e.g. inspecting errno).
278
+ #[cfg(unix)]
279
Err(ref e) if e.raw_os_error() == Some(libc::ENOTSUP) => return Ok(()),
280
281
#[cfg(target_os = "linux")]
0 commit comments