Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

src/lib: Make raise_fd_limit return new limit #4

Merged
merged 2 commits into from
Aug 27, 2020

Conversation

mxinden
Copy link
Contributor

@mxinden mxinden commented Aug 25, 2020

Add return value Option<u64> to raise_fd_limit returning the new file descriptor limit to the caller.

I am not able to test this on a MacOS or iOS machine. cargo build --target x86_64-apple-darwin compiles. Could someone with a Mac test this?

As far as I can tell rlimit::rlim_cur is a u64 on both 64 bit OS and 32 bit OS. Please correct me if I am wrong. cargo build --target i686-unknown-linux-musl succeeds.

Patch bumps the crate's version to v0.2.0 for a new release.

Add return value `Option<u64>` to `raise_fd_limit` returning the new
file descriptor limit to the caller.
@mxinden
Copy link
Contributor Author

mxinden commented Aug 25, 2020

Concrete use case described in paritytech/substrate#6956.

@mxinden mxinden requested a review from NikVolf August 27, 2020 08:48
@mxinden
Copy link
Contributor Author

mxinden commented Aug 27, 2020

@NikVolf do you have some time to review this pull request?

@NikVolf NikVolf merged commit a27a68d into paritytech:master Aug 27, 2020
@mxinden
Copy link
Contributor Author

mxinden commented Aug 28, 2020

@NikVolf thanks for publishing!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants