From d7f82f6837aa500dc9ce98b5742db0c9a0cb3c59 Mon Sep 17 00:00:00 2001 From: Nikita Kryuchkov Date: Wed, 22 Jan 2020 09:14:08 +0400 Subject: [PATCH] Add a comment with an explanation --- pkg/app/appserver/proc_manager.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/app/appserver/proc_manager.go b/pkg/app/appserver/proc_manager.go index c77eca1cc0..0a5e298980 100644 --- a/pkg/app/appserver/proc_manager.go +++ b/pkg/app/appserver/proc_manager.go @@ -102,6 +102,8 @@ func (m *procManager) Wait(name string) error { return err } + // While waiting for p.Wait() call, we need app to present in the processes list, + // so we cannot pop it before p.Wait(). if err := p.Wait(); err != nil { if _, ok := err.(*exec.ExitError); !ok { err = fmt.Errorf("failed to run app executable %s: %v", name, err)