[lxc-devel] [lxd/master] Fix container shutdown to actually happen in parallel

stgraber on Github lxc-bot at linuxcontainers.org
Thu Mar 17 20:53:59 UTC 2016


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 370 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20160317/4401de22/attachment.bin>
-------------- next part --------------
From e7b5e70285d6b66786e9a8e3bcf016885bc2801e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?St=C3=A9phane=20Graber?= <stgraber at ubuntu.com>
Date: Thu, 17 Mar 2016 16:52:12 -0400
Subject: [PATCH] Fix container shutdown to actually happen in parallel
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Closes #1773

Signed-off-by: Stéphane Graber <stgraber at ubuntu.com>
---
 lxd/containers.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lxd/containers.go b/lxd/containers.go
index 6a02273..a7a8351 100644
--- a/lxd/containers.go
+++ b/lxd/containers.go
@@ -159,8 +159,8 @@ func containersShutdown(d *Daemon) error {
 				wg.Done()
 			}()
 		}
-		wg.Wait()
 	}
+	wg.Wait()
 
 	return nil
 }


More information about the lxc-devel mailing list