瀏覽代碼

Do not display warning if cannot forward signal to child. See https://github.com/docker/pinata/pull/14327

Guillaume Tardif 5 年之前
父節點
當前提交
b060d8acfc
共有 1 個文件被更改,包括 2 次插入4 次删除
  1. 2 4
      cli/mobycli/exec.go

+ 2 - 4
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
 			}