From 6d25eb6e7c599bd569af02cf08fe0fbc9af7e1d8 Mon Sep 17 00:00:00 2001 From: Ma Shimiao Date: Thu, 24 Sep 2015 17:21:20 +0800 Subject: [PATCH] client/start: fix logic for discarded signal Signed-off-by: Ma Shimiao --- api/client/start.go | 1 + 1 file changed, 1 insertion(+) diff --git a/api/client/start.go b/api/client/start.go index e039df022d..8812871446 100644 --- a/api/client/start.go +++ b/api/client/start.go @@ -32,6 +32,7 @@ func (cli *DockerCli) forwardAllSignals(cid string) chan os.Signal { } if sig == "" { fmt.Fprintf(cli.err, "Unsupported signal: %v. Discarding.\n", s) + continue } if _, _, err := readBody(cli.call("POST", fmt.Sprintf("/containers/%s/kill?signal=%s", cid, sig), nil, nil)); err != nil { logrus.Debugf("Error sending signal: %s", err)