Skip to content

F_DUPFD_CLOEXEC doesn't work on macOS 11.3 (v0.7.12) #1497

Closed
@nhynes

Description

@nhynes

v0.7.12 introduced the use of F_DUPFD_CLOEXEC in Selector::try_clone, but when run on macOS 11.3, gives an error of

thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Os { code: 22, kind: InvalidInput, message: "Invalid argument" }', src/main.rs:5:64

The error is fixed in mio v0.8, but currently tokio (v1.6) cannot run with feature = ["net"], as the Waker depends on cloning the Selector.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions