From: z1mvader Date: Tue, 7 Feb 2017 22:55:46 +0000 (-0500) Subject: trying to fix unimplemented flock under linux X-Git-Tag: archive/raspbian/0.35.0-2+rpi1~3^2^2^2^2^2^2^2~22^2~9^2~161^2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=fb6a98fbd682bd074198d080da894f64399f9018;p=cargo.git trying to fix unimplemented flock under linux --- diff --git a/src/cargo/util/flock.rs b/src/cargo/util/flock.rs index a20540d06..64151bff5 100644 --- a/src/cargo/util/flock.rs +++ b/src/cargo/util/flock.rs @@ -276,6 +276,9 @@ fn acquire(config: &Config, #[cfg(target_os = "macos")] Err(ref e) if e.raw_os_error() == Some(libc::ENOTSUP) => return Ok(()), + #[cfg(target_os = "linux")] + Err(ref e) if e.raw_os_error() == Some(libc::ENOSYS) => return Ok(()), + Err(e) => { if e.raw_os_error() != lock_contended_error().raw_os_error() { return Err(human(e)).chain_error(|| {