chiark
/
gitweb
/
~mdw
/
disorder
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b4a8d0f
)
Warn on attempts to change nice_server during server lifetime.
author
Richard Kettlewell
<rjk@greenend.org.uk>
Sun, 12 Apr 2009 20:30:59 +0000
(21:30 +0100)
committer
Richard Kettlewell
<rjk@greenend.org.uk>
Sun, 12 Apr 2009 20:30:59 +0000
(21:30 +0100)
lib/configuration.c
patch
|
blob
|
blame
|
history
diff --git
a/lib/configuration.c
b/lib/configuration.c
index 98f5fbfd8f582cb1d1ee521cf0b66c942ff6fc7f..95b81330df1c546a93bcdc978c28a5deade62105 100644
(file)
--- a/
lib/configuration.c
+++ b/
lib/configuration.c
@@
-1393,6
+1393,10
@@
int config_read(int server,
error(0, "'nice_speaker' cannot be changed without a restart");
/* ...but we accept the new config anyway */
}
+ if(c->nice_server != oldconfig->nice_server) {
+ error(0, "'nice_server' cannot be changed without a restart");
+ /* ...but we accept the new config anyway */
+ }
if(namepartlist_compare(&c->namepart, &oldconfig->namepart)) {
error(0, "'namepart' settings cannot be changed without a restart");
failed = 1;