- client: clear config before rereading config file.

This means that, e.g. if you remove <ncpus>
		it will revert to the actual number.
		However, it also means that any config params
		set via command line will be overridden.

svn path=/trunk/boinc/; revision=21472
This commit is contained in:
David Anderson 2010-05-12 04:43:16 +00:00
parent 22840960f5
commit 8726c79087
2 changed files with 11 additions and 0 deletions

View File

@ -3522,3 +3522,13 @@ David 11 May 2010
client_state.cpp,h
pers_file_xfer.cpp
cpu_sched.cpp
David 11 May 2010
- client: clear config before rereading config file.
This means that, e.g. if you remove <ncpus>
it will revert to the actual number.
However, it also means that any config params
set via command line will be overridden.
client/
log_flags.cpp

View File

@ -445,6 +445,7 @@ int read_config_file(bool init) {
if (!init) {
msg_printf(NULL, MSG_INFO, "Re-reading cc_config.xml");
config.clear();
}
f = boinc_fopen(CONFIG_FILE, "r");
if (!f) return ERR_FOPEN;