Skip to content

Rustc file lock not working on WSL #72157

Closed
@nbdd0121

Description

@nbdd0121

WSL1 does not support fcntl-based advisory locks, therefore the current src/librustc_data_structures/flock.rs implementation does not work.

This issue can be observed by running cargo doc on a repository with many crates. The search-index.js can miss crates.

According to my test libc::flock is working on WSL. We could replace fcntl based lock with flock based lock for Linux. However this will break lock over NFS for Linux 2.6.11 or earlier, I can author a PR if that's okay.

Related WSL issue: microsoft/WSL#1927

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-enhancementCategory: An issue proposing an enhancement or a PR with one.O-windowsOperating system: Windows

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions