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

Recursively look for PIDs in cgroups #329

Closed

Conversation

ibuildthecloud
Copy link

When using the cgroup fs the GetPids() should return pids of child
cgroups also.

Fixes moby/moby#16206

Signed-off-by: Darren Shepherd darren@rancher.com

When using the cgroup fs the GetPids() should return pids of child
cgroups also.

Fixes moby/moby#16206

Signed-off-by: Darren Shepherd <darren@rancher.com>
@ibuildthecloud
Copy link
Author

I've been running this patch for awhile in RancherOS with no issue. I've held off on submitting it but I could never figure how to write a test in runc. But I really need this fix for Docker 1.9.

@crosbymichael
Copy link
Member

@ibuildthecloud and how would the cgroups get into this type of state that you need to do this?

@ibuildthecloud
Copy link
Author

@crosbymichael Docker in Docker. Each level of docker just nests more and more. Nobody ever notices there is a problem because they don't do --pid=host and the PID namespace just cleans everything up. But with pid=host things break.

@LK4D4 LK4D4 closed this in #330 Oct 13, 2015
stefanberger pushed a commit to stefanberger/runc that referenced this pull request Sep 8, 2017
Move process specific settings to process
stefanberger pushed a commit to stefanberger/runc that referenced this pull request Sep 8, 2017
These slipped through in 5a8a779 (Move process specific settings to
process, 2016-03-02, opencontainers#329).

Signed-off-by: W. Trevor King <wking@tremily.us>
stefanberger pushed a commit to stefanberger/runc that referenced this pull request Sep 8, 2017
The label changed in 5a8a779 (Move process specific settings to
process, 2016-03-02, opencontainers#329) and 7bf06d5 (source and schema:
differentiate with examples, 2015-12-18, opencontainers#276) missed this instance
when rebasing around opencontainers#329.

Signed-off-by: W. Trevor King <wking@tremily.us>
stefanberger pushed a commit to stefanberger/runc that referenced this pull request Sep 8, 2017
Since f9dc90b (make link usage consistent across the specification,
2017-02-09, opencontainers#687), the official style is to only use reference-style
links for external links.  I expect the remaining three entries just
slipped through.  This commit adjusts everything found with:

  $ git grep ']: [a-z]' | grep -v http

It also fixes the underscore -> hyphen in the
glossary.md#container-namespace target and updates the capabilities
location to catch up with 5a8a779 (Move process specific settings to
process, 2016-03-02, opencontainers#329).

Signed-off-by: W. Trevor King <wking@tremily.us>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants