From b060d8acfc983c6a9c6f08e5ec437a8a5418bbc3 Mon Sep 17 00:00:00 2001 From: Guillaume Tardif Date: Thu, 13 Aug 2020 14:06:52 +0200 Subject: [PATCH] Do not display warning if cannot forward signal to child. See https://github.com/docker/pinata/pull/14327 --- cli/mobycli/exec.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/cli/mobycli/exec.go b/cli/mobycli/exec.go index fcf5a0625..967747fab 100644 --- a/cli/mobycli/exec.go +++ b/cli/mobycli/exec.go @@ -72,10 +72,8 @@ func Exec() { if cmd.Process == nil { continue // can happen if receiving signal before the process is actually started } - err := cmd.Process.Signal(sig) - if err != nil { - fmt.Printf("WARNING could not forward signal %s to %s : %s\n", sig.String(), ComDockerCli, err.Error()) - } + // nolint errcheck + cmd.Process.Signal(sig) case <-childExit: return }