mirror of https://github.com/BOINC/boinc.git
*** empty log message ***
svn path=/trunk/boinc/; revision=2822
This commit is contained in:
parent
18d8b5dd6c
commit
373917017a
|
@ -8657,3 +8657,10 @@ David 23 Dec 2003
|
|||
sched/
|
||||
handle_request.C
|
||||
start
|
||||
|
||||
David 23 Dec 2003
|
||||
- improved error messages in stderr_out
|
||||
|
||||
client/
|
||||
app.C
|
||||
client_state.C
|
||||
|
|
|
@ -389,7 +389,7 @@ int ACTIVE_TASK::start(bool first_time) {
|
|||
state = PROCESS_COULDNT_START;
|
||||
result->active_task_state = PROCESS_COULDNT_START;
|
||||
if (win_error) {
|
||||
gstate.report_result_error(*result, win_error, (LPTSTR)&lpMsgBuf);
|
||||
gstate.report_result_error(*result, win_error, "CreateProcess(): %s", (LPTSTR)&lpMsgBuf);
|
||||
LocalFree(lpMsgBuf);
|
||||
return ERR_EXEC;
|
||||
}
|
||||
|
@ -415,7 +415,7 @@ int ACTIVE_TASK::start(bool first_time) {
|
|||
if (pid == -1) {
|
||||
state = PROCESS_COULDNT_START;
|
||||
result->active_task_state = PROCESS_COULDNT_START;
|
||||
gstate.report_result_error(*result, -1, strerror(errno));
|
||||
gstate.report_result_error(*result, -1, "fork(): %s", strerror(errno));
|
||||
msg_printf(wup->project, MSG_ERROR, "fork(): %s", strerror(errno));
|
||||
return ERR_FORK;
|
||||
}
|
||||
|
@ -613,7 +613,7 @@ bool ACTIVE_TASK_SET::check_app_exited() {
|
|||
atp->state = PROCESS_ABORTED;
|
||||
atp->result->active_task_state = PROCESS_ABORTED;
|
||||
gstate.report_result_error(
|
||||
*(atp->result), 0, "process was aborted"
|
||||
*(atp->result), 0, "process was aborted by core client"
|
||||
);
|
||||
} else {
|
||||
atp->state = PROCESS_EXITED;
|
||||
|
@ -665,7 +665,7 @@ bool ACTIVE_TASK_SET::check_app_exited() {
|
|||
atp->state = PROCESS_ABORTED;
|
||||
atp->result->active_task_state = PROCESS_ABORTED;
|
||||
gstate.report_result_error(
|
||||
*(atp->result), 0, "process was aborted"
|
||||
*(atp->result), 0, "process was aborted by core client"
|
||||
);
|
||||
} else {
|
||||
if (WIFEXITED(stat)) {
|
||||
|
|
|
@ -672,7 +672,7 @@ bool CLIENT_STATE::garbage_collect() {
|
|||
//
|
||||
if (!rp->ready_to_report && rp->wup->had_failure(failnum)) {
|
||||
rp->wup->get_file_errors(error_msgs);
|
||||
report_result_error(*rp, 0, error_msgs.c_str());
|
||||
report_result_error(*rp, 0, "file transfer error: %s", error_msgs.c_str());
|
||||
}
|
||||
for (i=0; i<rp->output_files.size(); i++) {
|
||||
// If one of the output files had an upload failure,
|
||||
|
|
|
@ -173,6 +173,18 @@ function link_results($n, $mq, $query) {
|
|||
}
|
||||
}
|
||||
|
||||
//
|
||||
function exit_status_string($result) {
|
||||
$x = $result->exit_status;
|
||||
if ($x == 0) {
|
||||
$y = parse_element($result->stderr_out, "<exit_status>");
|
||||
if ($y) {
|
||||
$x = (int)$y;
|
||||
}
|
||||
}
|
||||
return sprintf("%d (0x%x)", $x, $x);
|
||||
}
|
||||
|
||||
function show_result_summary() {
|
||||
$server_state = array();
|
||||
$outcome = array();
|
||||
|
@ -654,6 +666,7 @@ function show_result($result) {
|
|||
row("Server state", server_state_string($result->server_state));
|
||||
row("Outcome", outcome_string($result->outcome));
|
||||
row("Client state", client_state_string($result->client_state));
|
||||
row("Exit status", exit_status_string($result));
|
||||
row("Host ID", "<a href=db_action.php?table=host&id=$result->hostid>" . host_name_by_id($result->hostid) . "</a>");
|
||||
row("Report deadline", time_str($result->report_deadline));
|
||||
row("CPU time", $result->cpu_time);
|
||||
|
@ -679,6 +692,7 @@ function result_short_header() {
|
|||
<th>WU ID</th>
|
||||
<th>server state</th>
|
||||
<th>outcome</th>
|
||||
<th>exit status</th>
|
||||
<th>host (user)</th>
|
||||
<th>client ver</th>
|
||||
<th>received</th>
|
||||
|
@ -710,6 +724,7 @@ function show_result_short($result) {
|
|||
<td><a href=db_action.php?table=workunit&id=$result->workunitid>$result->workunitid</a></td>
|
||||
<td>$ss</td>
|
||||
<td bgcolor=$outcome_color>$oc</td>
|
||||
<td>", exit_status_string($result), "</td>
|
||||
<td>$host_user</td>
|
||||
<td>$version</td>
|
||||
<td>$received</td>
|
||||
|
|
Loading…
Reference in New Issue