pgraph, resources: Improve Init/Close and Worker status

This should do some rough cleanups around the Init/Close of resources,
and tracking of Worker function status.
This commit is contained in:
James Shubin
2017-02-02 19:48:42 -05:00
parent bec7f1726f
commit 2da21f90f4
5 changed files with 54 additions and 34 deletions

View File

@@ -564,7 +564,7 @@ func (obj *Main) Run() error {
// tell inner main loop to exit
close(exitchan)
G.Exit() // tell all the children to exit, and waits for them to do so
G.Exit() // tells all the children to exit, and waits for them to do so
// cleanup etcd main loop last so it can process everything first
if err := EmbdEtcd.Destroy(); err != nil { // shutdown and cleanup etcd