From 84eea45c961f8e7ff92276538834ea9a512d6776 Mon Sep 17 00:00:00 2001 From: Kevin Dalley Date: Sat, 20 Mar 2004 07:57:22 +0000 Subject: [PATCH] * sched/server_types.C: set exit_status to non-zero value before parsing. Log error with xml parsing of SCHEDULER_REQUEST. svn path=/trunk/boinc/; revision=3104 --- sched/server_types.C | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sched/server_types.C b/sched/server_types.C index 8a49e262f0..2c0345583e 100644 --- a/sched/server_types.C +++ b/sched/server_types.C @@ -132,6 +132,8 @@ int SCHEDULER_REQUEST::parse(FILE* fin) { log_messages.printf(SchedMessages::NORMAL, "SCHEDULER_REQUEST::parse(): unrecognized: %s\n", buf); } } + log_messages.printf(SchedMessages::NORMAL, + "SCHEDULER_REQUEST::parse(): xml not correctly closed\n"); return ERR_XML_PARSE; } @@ -374,6 +376,8 @@ int APP_VERSION::write(FILE* fout, APP& app) { int RESULT::parse_from_client(FILE* fin) { char buf[256]; + // should be non-zero if exit_status is not found + exit_status = ERR_NO_EXIT_STATUS; memset(this, 0, sizeof(RESULT)); while (fgets(buf, 256, fin)) { if (match_tag(buf, "")) return 0;