*** empty log message ***

svn path=/trunk/boinc/; revision=1955
This commit is contained in:
Karl Chen 2003-08-02 00:02:11 +00:00
parent 741a06d6cd
commit e786880130
4 changed files with 19 additions and 15 deletions

View File

@ -5515,3 +5515,7 @@ David Aug 1 2003
Karl 2003/08/01 Karl 2003/08/01
- increased MAX_APP_VERSIONS from 100 to 500 - increased MAX_APP_VERSIONS from 100 to 500
sched/* sched/*
Karl 2003/08/01
- fixed \n s in client messages
client/*

View File

@ -505,7 +505,7 @@ bool ACTIVE_TASK_SET::check_app_exited() {
atp->state = PROCESS_ABORTED; atp->state = PROCESS_ABORTED;
atp->result->active_task_state = PROCESS_ABORTED; atp->result->active_task_state = PROCESS_ABORTED;
gstate.report_result_error( gstate.report_result_error(
*(atp->result), 0, "process was aborted\n" *(atp->result), 0, "process was aborted"
); );
} else { } else {
atp->state = PROCESS_EXITED; atp->state = PROCESS_EXITED;
@ -516,7 +516,7 @@ bool ACTIVE_TASK_SET::check_app_exited() {
if (exit_code) { if (exit_code) {
gstate.report_result_error( gstate.report_result_error(
*(atp->result), 0, *(atp->result), 0,
"process exited with a non zero exit code\n" "process exited with a non zero exit code"
); );
} }
} }
@ -557,7 +557,7 @@ bool ACTIVE_TASK_SET::check_app_exited() {
atp->state = PROCESS_ABORTED; atp->state = PROCESS_ABORTED;
atp->result->active_task_state = PROCESS_ABORTED; atp->result->active_task_state = PROCESS_ABORTED;
gstate.report_result_error( gstate.report_result_error(
*(atp->result), 0, "process was aborted\n" *(atp->result), 0, "process was aborted"
); );
} else { } else {
if (WIFEXITED(stat)) { if (WIFEXITED(stat)) {
@ -572,7 +572,7 @@ bool ACTIVE_TASK_SET::check_app_exited() {
if(atp->exit_status) { if(atp->exit_status) {
gstate.report_result_error( gstate.report_result_error(
*(atp->result), 0, *(atp->result), 0,
"process exited with a nonzero exit code\n" "process exited with a nonzero exit code"
); );
} }
scope_messages.printf("ACTIVE_TASK_SET::check_app_exited(): process exited: status %d\n", atp->exit_status); scope_messages.printf("ACTIVE_TASK_SET::check_app_exited(): process exited: status %d\n", atp->exit_status);
@ -582,7 +582,7 @@ bool ACTIVE_TASK_SET::check_app_exited() {
atp->result->signal = atp->signal; atp->result->signal = atp->signal;
atp->result->active_task_state = PROCESS_WAS_SIGNALED; atp->result->active_task_state = PROCESS_WAS_SIGNALED;
gstate.report_result_error( gstate.report_result_error(
*(atp->result), 0, "process was signaled\n" *(atp->result), 0, "process was signaled"
); );
scope_messages.printf("ACTIVE_TASK_SET::check_app_exited(): process was signaled: %d\n", atp->signal); scope_messages.printf("ACTIVE_TASK_SET::check_app_exited(): process was signaled: %d\n", atp->signal);
} else { } else {
@ -914,7 +914,7 @@ int ACTIVE_TASK_SET::restart_tasks() {
atp->result->active_task_state = PROCESS_COULDNT_START; atp->result->active_task_state = PROCESS_COULDNT_START;
gstate.report_result_error( gstate.report_result_error(
*(atp->result), retval, *(atp->result), retval,
"Couldn't restart the app for this result.\n" "Couldn't restart the app for this result."
); );
active_tasks.erase(iter); active_tasks.erase(iter);
} else { } else {

View File

@ -1581,7 +1581,7 @@ int CLIENT_STATE::report_result_error(
sprintf( sprintf(
buf, buf,
"<message>%s</message>\n" "<message>%s\n</message>\n"
"<active_task_state>%d</active_task_state>\n" "<active_task_state>%d</active_task_state>\n"
"<exit_status>%d</exit_status>\n" "<exit_status>%d</exit_status>\n"
"<signal>%d</signal>\n", "<signal>%d</signal>\n",

View File

@ -2,18 +2,18 @@
// Version 1.0 (the "License"); you may not use this file except in // Version 1.0 (the "License"); you may not use this file except in
// compliance with the License. You may obtain a copy of the License at // compliance with the License. You may obtain a copy of the License at
// http://boinc.berkeley.edu/license_1.0.txt // http://boinc.berkeley.edu/license_1.0.txt
// //
// Software distributed under the License is distributed on an "AS IS" // Software distributed under the License is distributed on an "AS IS"
// basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the // basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
// License for the specific language governing rights and limitations // License for the specific language governing rights and limitations
// under the License. // under the License.
// //
// The Original Code is the Berkeley Open Infrastructure for Network Computing. // The Original Code is the Berkeley Open Infrastructure for Network Computing.
// //
// The Initial Developer of the Original Code is the SETI@home project. // The Initial Developer of the Original Code is the SETI@home project.
// Portions created by the SETI@home project are Copyright (C) 2002 // Portions created by the SETI@home project are Copyright (C) 2002
// University of California at Berkeley. All Rights Reserved. // University of California at Berkeley. All Rights Reserved.
// //
// Contributor(s): // Contributor(s):
// //
// High-level logic involving task execution // High-level logic involving task execution
@ -249,7 +249,7 @@ bool CLIENT_STATE::start_apps() {
atp->result->active_task_state = PROCESS_COULDNT_START; atp->result->active_task_state = PROCESS_COULDNT_START;
report_result_error( report_result_error(
*(atp->result), retval, *(atp->result), retval,
"Couldn't start the app for this result.\n" "Couldn't start the app for this result."
); );
} }
action = true; action = true;