Skip to content

Resource::RLIMIT_NPROC configured out on macOS #2800

Description

@jdwx

I noticed that Resource::RLIMIT_NPROC isn't defined on macOS.

In the master branch, nix/src/sys/resource.rs lines 102-107 limit to:

  • linux_android
  • target_os = "freebsd"
  • netbsdlike
  • target_os = "aix"

RLIMIT_NPROC is present in the libc crate and in the C headers and documented in the setrlimit() manpage.

I couldn't find a specific reason in the git history why it's this way. Is it just a case of macOS not always being sure how BSD-like it wants to be, or is there a specific reason it's not present?

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