mirror of https://github.com/BOINC/boinc.git
- 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:
parent
22840960f5
commit
8726c79087
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue