Skip to content

rlimit: avoid performing the test and setting limit if its infinite#2032

Open
RonFed wants to merge 1 commit into
cilium:mainfrom
RonFed:rlimit_infinity_check
Open

rlimit: avoid performing the test and setting limit if its infinite#2032
RonFed wants to merge 1 commit into
cilium:mainfrom
RonFed:rlimit_infinity_check

Conversation

@RonFed

@RonFed RonFed commented Jun 5, 2026

Copy link
Copy Markdown
Contributor

If the current rlimit is infinity, raising it will be a no-op, so we can skip the init test and the later potential rlimit syscall to raise it to infinity.

@RonFed RonFed requested a review from a team as a code owner June 5, 2026 20:19
@RonFed RonFed changed the title rlimit: avoid performing the test and setting limit if its infinte rlimit: avoid performing the test and setting limit if its infinite Jun 5, 2026
Signed-off-by: Ron Federman <ron@odigos.io>
@RonFed RonFed force-pushed the rlimit_infinity_check branch from d6d33b8 to f8894bb Compare June 5, 2026 20:21
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.

1 participant