diff --git a/pkg/cli/commands.go b/pkg/cli/commands.go index 26fc0997..c4c261a3 100644 --- a/pkg/cli/commands.go +++ b/pkg/cli/commands.go @@ -271,7 +271,9 @@ func MakeGRPCServerCommand( return err } - // NOTE (shackra): I don't understand this goroutine + // Avoid zombie processes. If the parent dies, this + // will cause Stdin on the child to close, and then + // the child will exit itself. go func() { in := make([]byte, 1) _, err := os.Stdin.Read(in)