mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
don't forward SIGCHLD to container
It makes no sense to forward SIGCHLD to the container.
This commit is contained in:
parent
457375ea37
commit
440422a963
1 changed files with 3 additions and 0 deletions
|
@ -549,6 +549,9 @@ func (cli *DockerCli) forwardAllSignals(cid string) chan os.Signal {
|
|||
utils.CatchAll(sigc)
|
||||
go func() {
|
||||
for s := range sigc {
|
||||
if s == syscall.SIGCHLD {
|
||||
continue
|
||||
}
|
||||
if _, _, err := cli.call("POST", fmt.Sprintf("/containers/%s/kill?signal=%d", cid, s), nil); err != nil {
|
||||
utils.Debugf("Error sending signal: %s", err)
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue