Commit 84ff3af7 by Wolfgang Bumiller

start: fix error handling when limits fail to apply

(The code was moved here from the child side of the startup without adapting the error case.) Signed-off-by: 's avatarWolfgang Bumiller <w.bumiller@proxmox.com>
parent 64f26a89
......@@ -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)) {
ERROR("failed to setup resource limits for '%s'", name);
return -1;
goto out_delete_net;
}
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