From f6cd51fe728c3d62a8661c470035135ba1b0cabd Mon Sep 17 00:00:00 2001 From: David Anderson Date: Wed, 14 Sep 2011 23:22:08 +0000 Subject: [PATCH] - vboxwrapper: we don't seem to be getting the VM PID. Add some printfs. svn path=/trunk/boinc/; revision=24211 --- checkin_notes | 19 +++++++++++++------ samples/vboxwrapper/vbox.cpp | 12 ++++++++++-- 2 files changed, 23 insertions(+), 8 deletions(-) diff --git a/checkin_notes b/checkin_notes index f6f38e8ad4..b65b1d185d 100644 --- a/checkin_notes +++ b/checkin_notes @@ -5864,10 +5864,10 @@ David 12 Sept 2011 cpu_sched.cpp David 12 Sept 2011 - - client: make file upload work w/ old handlers + - client: make file upload work w/ old handlers - client/ - file_xfer.cpp + client/ + file_xfer.cpp David 12 Sept 2011 - web: add config option @@ -6009,10 +6009,10 @@ David 13 Sept 2011 http_curl.cpp David 13 Sept 2011 - - client: curl_easy_escape() escapes way too much. Just escape spaces. + - client: curl_easy_escape() escapes way too much. Just escape spaces. - client/ - http_curl.cpp + client/ + http_curl.cpp David 14 Sept 2011 - XML parsing: do XML unescaping in place rather than allocating @@ -6052,3 +6052,10 @@ David 14 Sept 2011 client_state.cpp coproc_detect.cpp cpu_sched.cpp + +David 14 Sept 2011 + - vboxwrapper: we don't seem to be getting the VM PID. + Add some printfs. + + samples/vboxwrapper/ + vbox.cpp diff --git a/samples/vboxwrapper/vbox.cpp b/samples/vboxwrapper/vbox.cpp index 6e8b4311ac..8dac7c4590 100644 --- a/samples/vboxwrapper/vbox.cpp +++ b/samples/vboxwrapper/vbox.cpp @@ -1069,11 +1069,19 @@ int VBOX_VM::get_vm_process_id(int& process_id) { // 00:00:06.015 None installed! // pid_location = output.find("Process ID: "); - if (pid_location == string::npos) return ERR_NOT_FOUND; + if (pid_location == string::npos) { + fprintf(stderr, "couldn't find 'Process ID: ' in %s\n", output.c_str()); + return ERR_NOT_FOUND; + } pid_location += 12; pid_length = output.find("\n", pid_location); pid = output.substr(pid_location, pid_length - pid_location); - if (pid.size() <= 0) return ERR_NOT_FOUND; + if (pid.size() <= 0) { + fprintf(stderr, "no PID: location %d length %d\n", + (int)pid_location, (int)pid_length + ); + return ERR_NOT_FOUND; + } process_id = atol(pid.c_str()); return 0; }