From b315c380f4acd65cc0428009702f99a266f96c59 Mon Sep 17 00:00:00 2001 From: Michael Crosby Date: Fri, 23 May 2014 01:24:58 +0000 Subject: [PATCH] Add wait flag to iptables Fixes #1573 Docker-DCO-1.1-Signed-off-by: Michael Crosby (github: crosbymichael) --- pkg/iptables/iptables.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/iptables/iptables.go b/pkg/iptables/iptables.go index 4cdd67ef7c..6809daef63 100644 --- a/pkg/iptables/iptables.go +++ b/pkg/iptables/iptables.go @@ -150,7 +150,7 @@ func Raw(args ...string) ([]byte, error) { if os.Getenv("DEBUG") != "" { fmt.Printf("[DEBUG] [iptables]: %s, %v\n", path, args) } - output, err := exec.Command(path, args...).CombinedOutput() + output, err := exec.Command(path, append([]string{"--wait"}, args...)...).CombinedOutput() if err != nil { return nil, fmt.Errorf("iptables failed: iptables %v: %s (%s)", strings.Join(args, " "), output, err) }