Skip to content
This repository has been archived by the owner on Nov 27, 2023. It is now read-only.

Commit

Permalink
Merge pull request #473 from docker/fix_warn_forward_signal
Browse files Browse the repository at this point in the history
Do not display warning if cannot forward signal to child.
  • Loading branch information
gtardif authored Aug 13, 2020
2 parents 4286458 + b060d8a commit ee915ce
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions cli/mobycli/exec.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit ee915ce

Please sign in to comment.