Commit 421a42bf by Christian Brauner Committed by GitHub

Merge pull request #1504 from Blub/limits-fixup

start: fix error handling when limits fail to apply
parents 64f26a89 84ff3af7
...@@ -1263,7 +1263,7 @@ static int lxc_spawn(struct lxc_handler *handler) ...@@ -1263,7 +1263,7 @@ static int lxc_spawn(struct lxc_handler *handler)
if (!lxc_list_empty(&handler->conf->limits) && setup_resource_limits(&handler->conf->limits, handler->pid)) { if (!lxc_list_empty(&handler->conf->limits) && setup_resource_limits(&handler->conf->limits, handler->pid)) {
ERROR("failed to setup resource limits for '%s'", name); ERROR("failed to setup resource limits for '%s'", name);
return -1; goto out_delete_net;
} }
if (!cgroup_setup_limits(handler, true)) { if (!cgroup_setup_limits(handler, true)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment