chiark
/
gitweb
/
~mdw
/
zoneconf
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
852bc83
)
bin/zoneconf: Close the output config files at the right time.
author
Mark Wooding
<mdw@distorted.org.uk>
Mon, 29 Aug 2011 16:18:58 +0000
(17:18 +0100)
committer
Mark 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
patch
|
blob
|
blame
|
history
diff --git
a/bin/zoneconf
b/bin/zoneconf
index fd8531fe7b2890cbbae36b8529043887f4d86281..e988a834635122ce1a91a5e16d5aab43e006b3e5 100755
(executable)
--- a/
bin/zoneconf
+++ b/
bin/zoneconf
@@
-1204,6
+1204,7
@@
defcmd update {} {
}
set win true
} {
}
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)
if {$win} {
foreach view $ZONECFG(all-views) {
file rename -force -- "$out($view).new" $out($view)