Merge pull request #473 from docker/fix_warn_forward_signal

Do not display warning if cannot forward signal to child.
This commit is contained in:
Guillaume Tardif 2020-08-13 14:12:50 +02:00 committed by GitHub
commit ee915cec78
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 4 deletions

View File

@ -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
}