From 330736c73460b7eee11b5b06aba1ee0935d0fd40 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ant=C3=B3nio=20Meireles?= Date: Thu, 7 Jan 2016 18:36:15 +0000 Subject: [PATCH] be nicer to the environment... MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: António Meireles --- run.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/run.go b/run.go index 42dbe48..067b064 100644 --- a/run.go +++ b/run.go @@ -244,6 +244,8 @@ func (running *sessionContext) boot(slt int, rawArgs *viper.Viper) (err error) { "PID %v\n", vm.Name, vm.PublicIP, c.Process.Pid) } return + default: + time.Sleep(100 * time.Millisecond) } } }() @@ -299,6 +301,8 @@ func (running *sessionContext) boot(slt int, rawArgs *viper.Viper) (err error) { if exit != nil || (vm.PublicIP != "" && vm.Pid != -1) { return vm.exitStatus } + default: + time.Sleep(1 * time.Second) } } }