From b7986d0d1e7a4daee8663f2e876616f883b22afa Mon Sep 17 00:00:00 2001 From: Christian Brauner Date: Sat, 11 Aug 2018 02:23:16 +0200 Subject: [PATCH] start: make netnsid allocation failures non-fatal Signed-off-by: Christian Brauner --- src/lxc/start.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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. */ -- 2.47.2