Skip to content

Ensure FileLock doesn't outlive the locked file #1653

Description

@bjorn3

This could be done by either adding a lifetime parameter and storing BorrowedFd or by storing an owned File/OwnedFd and adding a Deref/DerefMut impl to FileLock.

cc #1651 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-operatingsystemLow-level glue layerschoreImprovements that don't alter behaviour.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions