From 2f6b63cd8f5e261868306e334c48ecba6fc4261f Mon Sep 17 00:00:00 2001 From: Rom Walton Date: Wed, 13 Nov 2013 15:27:55 -0500 Subject: [PATCH] VBOX: Log a detection entry if vboxwrapper needed to configure the environment to handle BOINC running as a service/daemon. --- samples/vboxwrapper/vboxwrapper.cpp | 30 +++++++++++++++++++---------- 1 file changed, 20 insertions(+), 10 deletions(-) diff --git a/samples/vboxwrapper/vboxwrapper.cpp b/samples/vboxwrapper/vboxwrapper.cpp index 323f76b6f8..e585fbaf2c 100644 --- a/samples/vboxwrapper/vboxwrapper.cpp +++ b/samples/vboxwrapper/vboxwrapper.cpp @@ -485,6 +485,26 @@ int main(int argc, char** argv) { ); } + // Record if anonymous platform was used. + // + if (boinc_file_exists((std::string(aid.project_dir) + std::string("/app_info.xml")).c_str())) { + fprintf( + stderr, + "%s Detected: Anonymous Platform Enabled\n", + vboxwrapper_msg_prefix(buf, sizeof(buf)) + ); + } + + // Record if the sandboxed configuration is going to be used. + // + if (aid.using_sandbox) { + fprintf( + stderr, + "%s Detected: Sandbox Configuration Enabled\n", + vboxwrapper_msg_prefix(buf, sizeof(buf)) + ); + } + // Check against known incompatible versions of VirtualBox. // NOTE: Incompatible in this case means that VirtualBox 4.2.6 crashes during snapshot operations // and 4.2.18 fails to restore from snapshots properly. @@ -513,16 +533,6 @@ int main(int argc, char** argv) { boinc_temporary_exit(300, message.c_str()); } - // Record if anonymous platform was used. - // - if (boinc_file_exists((std::string(aid.project_dir) + std::string("/app_info.xml")).c_str())) { - fprintf( - stderr, - "%s Detected: Anonymous Platform Enabled\n", - vboxwrapper_msg_prefix(buf, sizeof(buf)) - ); - } - // Parse Job File // retval = parse_job_file(vm, copy_to_shared);