mirror of
https://github.com/clearlinux/docker.git
synced 2026-09-04 12:41:42 +00:00
Increase size of buffer for signals
The chan struct used to forward signals to containers was one element only, which caused some signals to be dropped when many were being received. Increasing the size of the chan buffer makes this much less likely to happen. Docker-DCO-1.1-Signed-off-by: Matt Heon <mheon@redhat.com> (github: mheon)
This commit is contained in:
@@ -535,7 +535,7 @@ func (cli *DockerCli) CmdRestart(args ...string) error {
|
||||
}
|
||||
|
||||
func (cli *DockerCli) forwardAllSignals(cid string) chan os.Signal {
|
||||
sigc := make(chan os.Signal, 1)
|
||||
sigc := make(chan os.Signal, 128)
|
||||
signal.CatchAll(sigc)
|
||||
go func() {
|
||||
for s := range sigc {
|
||||
|
||||
Reference in New Issue
Block a user