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

libcontainer: cgroups: deal with unlimited case for pids.max #644

Merged
merged 2 commits into from
Mar 21, 2016
Merged

libcontainer: cgroups: deal with unlimited case for pids.max #644

merged 2 commits into from
Mar 21, 2016

Commits on Mar 17, 2016

  1. libcontainer: cgroups: deal with unlimited case for pids.max

    Make sure we don't error out collecting statistics for cases where
    pids.max == "max". In that case, we can use a limit of 0 which means
    "unlimited".
    
    In addition, change the name of the stats attribute (Max) to mirror the
    name of the resources attribute in the spec (Limit) so that it's
    consistent internally.
    
    Signed-off-by: Aleksa Sarai <asarai@suse.de>
    cyphar committed Mar 17, 2016
    Configuration menu
    Copy the full SHA
    087b953 View commit details
    Browse the repository at this point in the history
  2. libcontainer: cgroups: add tests for pids.max == "max"

    Signed-off-by: Aleksa Sarai <asarai@suse.de>
    cyphar committed Mar 17, 2016
    Configuration menu
    Copy the full SHA
    a6d5179 View commit details
    Browse the repository at this point in the history