mirror of https://github.com/docker/compose.git
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:
commit
ee915cec78
|
@ -72,10 +72,8 @@ func Exec() {
|
||||||
if cmd.Process == nil {
|
if cmd.Process == nil {
|
||||||
continue // can happen if receiving signal before the process is actually started
|
continue // can happen if receiving signal before the process is actually started
|
||||||
}
|
}
|
||||||
err := cmd.Process.Signal(sig)
|
// nolint errcheck
|
||||||
if err != nil {
|
cmd.Process.Signal(sig)
|
||||||
fmt.Printf("WARNING could not forward signal %s to %s : %s\n", sig.String(), ComDockerCli, err.Error())
|
|
||||||
}
|
|
||||||
case <-childExit:
|
case <-childExit:
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue