*** empty log message ***

svn path=/trunk/boinc/; revision=2611
This commit is contained in:
David Anderson 2003-10-30 20:00:30 +00:00
parent b4e87c24a9
commit 27ac1c6aac
8 changed files with 33 additions and 11 deletions

View File

@ -295,6 +295,7 @@ int boinc_checkpoint_completed() {
// If it's time to quit, call boinc_finish which will exit the app properly // If it's time to quit, call boinc_finish which will exit the app properly
// //
if (time_to_quit) { if (time_to_quit) {
fprintf(stderr, "Received quit request from core client\n");
boinc_finish(ERR_QUIT_REQUEST); boinc_finish(ERR_QUIT_REQUEST);
} }
return 0; return 0;

View File

@ -7217,7 +7217,7 @@ Karl 2003-10-29
tools/ tools/
make_project make_project
David 28 Oct 2003 David 30 Oct 2003
- On call to CreateEvent() to make "event" object for - On call to CreateEvent() to make "event" object for
core client to ask app to quit (Windows) core client to ask app to quit (Windows)
changed ManualReset argument to false. changed ManualReset argument to false.
@ -7230,3 +7230,15 @@ David 28 Oct 2003
app.C app.C
client_state.C,h client_state.C,h
pers_file_xfer.C pers_file_xfer.C
David 30 Oct 2003
- API writes to stderr if get quit request
- Include signal numbers, error codes in messages about process exit
api/
boinc_api.C
client/
app.C
client_state.C
cs_apps.C
cs_scheduler.C

View File

@ -655,9 +655,9 @@ 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" *(atp->result), 0, "process got signal %d", atp->signal
); );
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 got signal %d\n", atp->signal);
} else { } else {
atp->state = PROCESS_EXIT_UNKNOWN; atp->state = PROCESS_EXIT_UNKNOWN;
atp->result->state = PROCESS_EXIT_UNKNOWN; atp->result->state = PROCESS_EXIT_UNKNOWN;
@ -1032,7 +1032,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." "Couldn't restart the app for this result: %d", retval
); );
active_tasks.erase(iter); active_tasks.erase(iter);
} else { } else {

View File

@ -658,12 +658,12 @@ bool CLIENT_STATE::garbage_collect() {
if (!rp->ready_to_report) { if (!rp->ready_to_report) {
// had an error uploading a file for this result // had an error uploading a file for this result
// //
switch(failnum) { switch (failnum) {
case ERR_FILE_TOO_BIG: case ERR_FILE_TOO_BIG:
report_result_error(*rp, 0, "Output file exceeded size limit"); report_result_error(*rp, 0, "Output file exceeded size limit");
break; break;
default: default:
report_result_error(*rp, 0, "Couldn't upload files or other output file error"); report_result_error(*rp, 0, "Output file error: %d", failnum);
} }
} }
} }
@ -874,7 +874,11 @@ int CLIENT_STATE::report_result_error(
va_list va; va_list va;
va_start(va, format); va_start(va, format);
#ifdef _WIN32
_vsnprintf(err_msg, sizeof(err_msg), format, va); _vsnprintf(err_msg, sizeof(err_msg), format, va);
#else
vsnprintf(err_msg, sizeof(err_msg), format, va);
#endif
va_end(va); va_end(va);
sprintf(buf, "Unrecoverable error for result %s (%s)", res.name, err_msg); sprintf(buf, "Unrecoverable error for result %s (%s)", res.name, err_msg);

View File

@ -264,8 +264,8 @@ 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." "Couldn't start the app for this result: error %d", retval
); );
} }
action = true; action = true;
set_client_state_dirty("start_apps"); set_client_state_dirty("start_apps");

View File

@ -464,9 +464,7 @@ int CLIENT_STATE::handle_scheduler_reply(
// deal with project preferences (should always be there) // deal with project preferences (should always be there)
// //
if (sr.project_prefs_xml) { if (sr.project_prefs_xml) {
if (strcmp( if (strcmp(project->project_specific_prefs, sr.project_prefs_xml)) {
project->project_specific_prefs, sr.project_prefs_xml
)) {
strcpy(project->project_specific_prefs, sr.project_prefs_xml); strcpy(project->project_specific_prefs, sr.project_prefs_xml);
retval = project->write_account_file(); retval = project->write_account_file();
if (retval) return retval; if (retval) return retval;

View File

@ -63,6 +63,9 @@ Help debug and enhance the BOINC software.
<a href=contact.php><b>Contact us</b></a> <a href=contact.php><b>Contact us</b></a>
<br><br> <br><br>
<img align=left src=nsf.gif>
BOINC is supported by the
<a href=http://nsf.gov>National Science Foundation</a>
</td> </td>
<td valign=top bgcolor=c8c8ff> <td valign=top bgcolor=c8c8ff>
<center> <center>

4
todo
View File

@ -1,3 +1,7 @@
port graphics API to X
CLI core interface:
--show slotnum or --show all
document update_versions
reject spamming clients w/o DB lookup reject spamming clients w/o DB lookup
message window is slightly scrolled message window is slightly scrolled
Don't render graphics if minimized Don't render graphics if minimized