[lxc-devel] [PATCH 1/1] sleep 0.5s on reboot

Serge Hallyn serge.hallyn at ubuntu.com
Thu Nov 12 07:52:16 UTC 2015


to give lxcfs' cgroup view time out.

Signed-off-by: Serge Hallyn <serge.hallyn at ubuntu.com>
---
 src/lxc/lxccontainer.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/lxc/lxccontainer.c b/src/lxc/lxccontainer.c
index 5207255..14c73b2 100644
--- a/src/lxc/lxccontainer.c
+++ b/src/lxc/lxccontainer.c
@@ -833,6 +833,7 @@ reboot:
 	if (conf->reboot == 1) {
 		INFO("container requested reboot");
 		conf->reboot = 2;
+		sleep(0.5); // let lxcfs' cgroup view time out
 		goto reboot;
 	}
 
-- 
2.5.0



More information about the lxc-devel mailing list