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?
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:
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?