From: Christian Brauner Date: Sat, 11 Aug 2018 00:23:16 +0000 (+0200) Subject: start: make netnsid allocation failures non-fatal X-Git-Tag: lxc-3.1.0~168^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F2520%2Fhead;p=thirdparty%2Flxc.git start: make netnsid allocation failures non-fatal Signed-off-by: Christian Brauner --- diff --git a/src/lxc/start.c b/src/lxc/start.c index 2485472e2..35a2bed04 100644 --- a/src/lxc/start.c +++ b/src/lxc/start.c @@ -1821,10 +1821,11 @@ static int lxc_spawn(struct lxc_handler *handler) ret = lxc_netns_set_nsid(handler->nsfd[LXC_NS_NET]); if (ret < 0) { - ERROR("Failed to allocate new network namespace id: %d", ret); - goto out_delete_net; + errno = -ret; + 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. */