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

controllers parsing is resilient to trailing newline #133

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

nxfs
Copy link

@nxfs nxfs commented Mar 20, 2024

In older kernel versions (tested with 5.10.208), the cgroup.controllers files ends with a newline. This newline is not trimmed and as such the application later can incorrectly consider that the last controller is not supported

In older kernel versions (tested with 5.10.208), the cgroup.controllers
files ends with a newline. This newline is not trimmed and as such the
application later can incorrectly consider that the last controller is not
supported
Copy link
Member

@Tim-Zhang Tim-Zhang left a comment

Choose a reason for hiding this comment

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

LGTM, good catch, thanks @nxfs

@Tim-Zhang
Copy link
Member

I don't know why the CI is not triggered, try to trigger CI by close and reopen

@Tim-Zhang Tim-Zhang closed this May 13, 2024
@Tim-Zhang Tim-Zhang reopened this May 13, 2024
@Tim-Zhang
Copy link
Member

@nxfs There are some CI failures, PTAL, THX

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.

None yet

3 participants