start: make netnsid allocation failures non-fatal

parent 60ce299f
...@@ -1712,11 +1712,12 @@ static int lxc_spawn(struct lxc_handler *handler) ...@@ -1712,11 +1712,12 @@ static int lxc_spawn(struct lxc_handler *handler)
ret = lxc_netns_set_nsid(handler->nsfd[LXC_NS_NET]); ret = lxc_netns_set_nsid(handler->nsfd[LXC_NS_NET]);
if (ret < 0) { if (ret < 0) {
ERROR("Failed to allocate new network namespace id: %d", ret); errno = -ret;
goto out_delete_net; SYSERROR("Failed to allocate new network namespace id");
} } else {
TRACE("Allocated new network namespace id"); TRACE("Allocated new network namespace id");
} }
}
/* Create the network configuration. */ /* Create the network configuration. */
if (handler->ns_clone_flags & CLONE_NEWNET) { if (handler->ns_clone_flags & CLONE_NEWNET) {
......
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