Skip to content

Support for unlimited (-1) value in ulimit extension#352

Merged
tfoote merged 2 commits intoosrf:mainfrom
miguelprada:ulimit-unlimited
Feb 20, 2026
Merged

Support for unlimited (-1) value in ulimit extension#352
tfoote merged 2 commits intoosrf:mainfrom
miguelprada:ulimit-unlimited

Conversation

@miguelprada
Copy link
Contributor

In the context of improving determinism of control applications inside containers, the ros2_control documentation suggests using unlimited -1 value for the memlock limit. However, the validation regular expression used here does not allow for the minus symbol in -1.

Also tried with unlimited which is equivalent when defining limits in limits.conf but, while it gets correctly validated by the extension here, it is not accepted as an argument by docker run.

I propose a change to the validation regular expression used, which should accept the special -1 value.

@miguelprada miguelprada requested a review from tfoote as a code owner February 20, 2026 12:15
Copy link
Collaborator

@tfoote tfoote left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewing thisI was considering more generic matches, but since -1 is a special value this looks good.

@tfoote tfoote merged commit edff0c9 into osrf:main Feb 20, 2026
4 checks passed
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