Skip to content

Commit

Permalink
be nicer to the environment...
Browse files Browse the repository at this point in the history
Signed-off-by: António Meireles <[email protected]>
  • Loading branch information
AntonioMeireles committed Jan 7, 2016
1 parent f8d3629 commit 330736c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions run.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}
}()
Expand Down Expand Up @@ -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)
}
}
}
Expand Down

0 comments on commit 330736c

Please sign in to comment.