mirror of https://github.com/BOINC/boinc.git
parent
c89193e29d
commit
a016bc65ea
|
@ -5666,3 +5666,10 @@ Karl 2003/08/12
|
||||||
|
|
||||||
sched/
|
sched/
|
||||||
handle_request.C
|
handle_request.C
|
||||||
|
|
||||||
|
Chrisz 2003/8/13
|
||||||
|
- if get either new global prefs OR new venue,
|
||||||
|
parse and install prefs
|
||||||
|
|
||||||
|
client/
|
||||||
|
cs_scheduler.C
|
|
@ -373,7 +373,7 @@ int CLIENT_STATE::handle_scheduler_reply(
|
||||||
FILE* f;
|
FILE* f;
|
||||||
int retval;
|
int retval;
|
||||||
unsigned int i;
|
unsigned int i;
|
||||||
bool signature_valid;
|
bool signature_valid,need_to_install_prefs=false;
|
||||||
char buf[256];
|
char buf[256];
|
||||||
|
|
||||||
nresults = 0;
|
nresults = 0;
|
||||||
|
@ -420,6 +420,12 @@ int CLIENT_STATE::handle_scheduler_reply(
|
||||||
project->rpc_seqno = 0;
|
project->rpc_seqno = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (strcmp(host_venue, sr.host_venue)) {
|
||||||
|
safe_strcpy(host_venue, sr.host_venue);
|
||||||
|
need_to_install_prefs = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// if the scheduler reply includes global preferences,
|
// if the scheduler reply includes global preferences,
|
||||||
// insert extra elements, write to disk, and parse
|
// insert extra elements, write to disk, and parse
|
||||||
//
|
//
|
||||||
|
@ -437,7 +443,11 @@ int CLIENT_STATE::handle_scheduler_reply(
|
||||||
sr.global_prefs_xml
|
sr.global_prefs_xml
|
||||||
);
|
);
|
||||||
fclose(f);
|
fclose(f);
|
||||||
safe_strcpy(host_venue, sr.host_venue);
|
need_to_install_prefs = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
if (need_to_install_prefs) {
|
||||||
retval = global_prefs.parse_file(host_venue);
|
retval = global_prefs.parse_file(host_venue);
|
||||||
if (retval) return retval;
|
if (retval) return retval;
|
||||||
install_global_prefs();
|
install_global_prefs();
|
||||||
|
|
Loading…
Reference in New Issue