From: Mark Wooding Date: Mon, 29 Aug 2011 16:18:58 +0000 (+0100) Subject: bin/zoneconf: Close the output config files at the right time. X-Git-Tag: 1.0.0~7 X-Git-Url: https://git.distorted.org.uk/~mdw/zoneconf/commitdiff_plain/0c009ef655b38cc4100ca4006dad45f3e77202af bin/zoneconf: Close the output config files at the right time. Otherwise they're still empty when we kick the nameserver. --- diff --git a/bin/zoneconf b/bin/zoneconf index fd8531f..e988a83 100755 --- a/bin/zoneconf +++ b/bin/zoneconf @@ -1204,6 +1204,7 @@ defcmd update {} { } set win true } { + foreach view $ZONECFG(all-views) { close $chan($view) } if {$win} { foreach view $ZONECFG(all-views) { file rename -force -- "$out($view).new" $out($view)