From 38372ba6efb92f6e5c944074effdc7dce421caae Mon Sep 17 00:00:00 2001 From: Rom Walton Date: Mon, 16 Feb 2004 05:07:11 +0000 Subject: [PATCH] *** empty log message *** svn path=/trunk/boinc/; revision=2992 --- checkin_notes | 14 ++++++++++++++ sched/handle_request.C | 4 +++- 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/checkin_notes b/checkin_notes index 3e32922521..1fcc0b6be4 100755 --- a/checkin_notes +++ b/checkin_notes @@ -10047,3 +10047,17 @@ David Feb 15 2004 py/Boinc/ database.py setup_project.py + +Rom Feb 15 2004 + - Older clients do not report back exit_status information of the project client + application which is causing a condition where the server believes a success + condition has occurred even though the client application AV'ed or otherwise + crashed. + + NOTE: + BOINC Clients older than 2.16 will ALWAYS report back an error as the server + will be looking for the exit_status tag in stderr and when it doesn't find + it it forcefully sets the exit_status to ERR_XML_PARSE (-112) + + sched/ + handle_request.C diff --git a/sched/handle_request.C b/sched/handle_request.C index dda99275cd..b32c4d387d 100644 --- a/sched/handle_request.C +++ b/sched/handle_request.C @@ -611,7 +611,9 @@ int handle_results( // look for exit status in stderr_out // TODO: return it separately // - parse_int(result.stderr_out, "", result.exit_status); + if (!parse_int(result.stderr_out, "", result.exit_status)) { + result.exit_status = ERR_XML_PARSE; + } if ((result.client_state == RESULT_FILES_UPLOADED) && (result.exit_status == 0)) { result.outcome = RESULT_OUTCOME_SUCCESS;