Add wait flag to iptables

Fixes #1573
Docker-DCO-1.1-Signed-off-by: Michael Crosby <michael@crosbymichael.com> (github: crosbymichael)
This commit is contained in:
Michael Crosby 2014-05-23 01:24:58 +00:00
parent 3d78c49aab
commit b315c380f4
1 changed files with 1 additions and 1 deletions

View File

@ -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)
}