From 06cd125e64c30886f66e6490a1cd4e7a7ba23655 Mon Sep 17 00:00:00 2001 From: Matthew Heon Date: Wed, 18 Jun 2014 10:51:44 -0400 Subject: [PATCH] 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 (github: mheon) --- api/client/commands.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/client/commands.go b/api/client/commands.go index a6a2e3553..0a30bc3d5 100644 --- a/api/client/commands.go +++ b/api/client/commands.go @@ -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 {