bin/zoneconf: Close the output config files at the right time.
authorMark Wooding <mdw@distorted.org.uk>
Mon, 29 Aug 2011 16:18:58 +0000 (17:18 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Mon, 29 Aug 2011 16:25:34 +0000 (17:25 +0100)
Otherwise they're still empty when we kick the nameserver.

bin/zoneconf

index fd8531f..e988a83 100755 (executable)
@@ -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)