Skip to content

Commit ee915ce

Browse files
authored
Merge pull request docker-archive#473 from docker/fix_warn_forward_signal
Do not display warning if cannot forward signal to child.
2 parents 4286458 + b060d8a commit ee915ce

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

cli/mobycli/exec.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,8 @@ func Exec() {
7272
if cmd.Process == nil {
7373
continue // can happen if receiving signal before the process is actually started
7474
}
75-
err := cmd.Process.Signal(sig)
76-
if err != nil {
77-
fmt.Printf("WARNING could not forward signal %s to %s : %s\n", sig.String(), ComDockerCli, err.Error())
78-
}
75+
// nolint errcheck
76+
cmd.Process.Signal(sig)
7977
case <-childExit:
8078
return
8179
}

0 commit comments

Comments
 (0)