* 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
This commit is contained in:
Kevin Dalley 2004-03-20 07:57:22 +00:00
parent 83a61c61fd
commit 84eea45c96
1 changed files with 4 additions and 0 deletions

View File

@ -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, "</result>")) return 0;