bin/zoneconf: Close the output config files at the right time.
[zoneconf] / 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)