VBOX: Fix trickle-up message passing. (From: Christian Beer)

This commit is contained in:
Rom Walton 2013-08-19 13:05:57 -04:00
parent 769cc7eaea
commit 655fd5e429
1 changed files with 16 additions and 5 deletions

View File

@ -385,11 +385,6 @@ int main(int argc, char** argv) {
vector<string> copy_to_shared;
char buf[256];
memset(&boinc_options, 0, sizeof(boinc_options));
boinc_options.main_program = true;
boinc_options.check_heartbeat = true;
boinc_options.handle_process_control = true;
boinc_init_options(&boinc_options);
for (int i=1; i<argc; i++) {
if (!strcmp(argv[i], "--trickle")) {
@ -423,6 +418,22 @@ int main(int argc, char** argv) {
}
#endif
memset(&boinc_options, 0, sizeof(boinc_options));
boinc_options.main_program = true;
boinc_options.check_heartbeat = true;
boinc_options.handle_process_control = true;
if (trickle_period > 0.0) {
fprintf(
stderr,
"%s Feature: Enabling trickle-ups (Interval: %f)\n",
vboxwrapper_msg_prefix(buf, sizeof(buf)), trickle_period
);
boinc_options.handle_trickle_ups = true;
}
boinc_init_options(&boinc_options);
// Prepare environment for detecting system conditions
//
boinc_get_init_data_p(&aid);