diff --git a/checkin_notes b/checkin_notes index 551d6c57de..1a1ea388f8 100755 --- a/checkin_notes +++ b/checkin_notes @@ -8872,3 +8872,9 @@ David 5 July 2005 scheduler_op.C,h clientgui/ ViewResources.cpp + +David 5 July 2005 + - prevent infinite loop in web (from Rob Ogilvie) + + html/inc + text_transform.inc diff --git a/client/acct_mgr.C b/client/acct_mgr.C index 9a3e75c145..28a31f996b 100644 --- a/client/acct_mgr.C +++ b/client/acct_mgr.C @@ -103,7 +103,7 @@ bool ACCT_MGR::poll() { retval = http_op.http_op_retval; } if (retval) { - msg_printf(NULL, MSG_ALERT_ERROR, "Account manager update failed:\nerror %d", retval); + msg_printf(NULL, MSG_ALERT_ERROR, "Account manager update failed:\n%s", boincerror(retval)); } state = ACCT_MGR_STATE_IDLE; } diff --git a/client/app.C b/client/app.C index dcf1a82411..5dd76ba814 100644 --- a/client/app.C +++ b/client/app.C @@ -150,11 +150,11 @@ void ACTIVE_TASK::cleanup_task() { if (app_client_shm.shm) { retval = detach_shmem(app_client_shm.shm); if (retval) { - msg_printf(NULL, MSG_ERROR, "detach_shmem: %d", retval); + msg_printf(NULL, MSG_ERROR, "Couldn't detach shared memory: %x", boincerror(retval)); } retval = destroy_shmem(shmem_seg_name); if (retval) { - msg_printf(NULL, MSG_ERROR, "destroy_shmem: %d", retval); + msg_printf(NULL, MSG_ERROR, "Couldn't destroy shared memory: %s", boincerror(retval)); } app_client_shm.shm = NULL; } diff --git a/client/app_control.C b/client/app_control.C index 9d61053f45..fbd8d6b22b 100644 --- a/client/app_control.C +++ b/client/app_control.C @@ -457,7 +457,7 @@ bool ACTIVE_TASK::check_max_disk_exceeded() { // retval = current_disk_usage(disk_usage); if (retval) { - msg_printf(0, MSG_ERROR, "Can't get application disk usage: %d", retval); + msg_printf(0, MSG_ERROR, "Can't get application disk usage: %s", boincerror(retval)); } else { if (disk_usage > max_disk_usage) { msg_printf( diff --git a/client/app_start.C b/client/app_start.C index 123dad1a2e..9a96dd6791 100644 --- a/client/app_start.C +++ b/client/app_start.C @@ -261,7 +261,7 @@ int ACTIVE_TASK::start(bool first_time) { retval = get_shmem_seg_name(); if (retval) { msg_printf(wup->project, MSG_ERROR, - "Can't get shared memory segment name: %d", retval + "Can't get shared memory segment name: %s", boincerror(retval) ); return retval; } @@ -407,7 +407,8 @@ int ACTIVE_TASK::start(bool first_time) { ); if (retval) { msg_printf( - wup->project, MSG_ERROR, "Can't create shared mem: %d", retval + wup->project, MSG_ERROR, + "Can't create shared memory: %d", boincerror(retval) ); return retval; } @@ -446,7 +447,7 @@ int ACTIVE_TASK::start(bool first_time) { sprintf(buf, "..%s..%s%s", PATH_SEPARATOR, PATH_SEPARATOR, exec_path ); retval = execv(buf, argv); msg_printf(wup->project, MSG_ERROR, - "execv(%s) failed: %d\n", buf, retval + "execv(%s) failed: %s\n", buf, boincerror(retval) ); perror("execv"); _exit(errno); @@ -574,10 +575,12 @@ int ACTIVE_TASK_SET::restart_tasks(int max_tasks) { retval = atp->start(false); if (retval) { - msg_printf(atp->wup->project, MSG_ERROR, "ACTIVE_TASKS::restart_tasks(); restart failed: %d\n", retval); + msg_printf(atp->wup->project, MSG_ERROR, + "Task restart failed: %s\n", boincerror(retval) + ); gstate.report_result_error( *(atp->result), - "Couldn't restart the app for this result: %d", retval + "Couldn't restart app: %d", retval ); iter = active_tasks.erase(iter); delete atp; diff --git a/client/client_state.C b/client/client_state.C index 4da852559e..7f7662d5f4 100644 --- a/client/client_state.C +++ b/client/client_state.C @@ -498,7 +498,9 @@ bool CLIENT_STATE::do_something() { retval = write_state_file_if_needed(); if (retval) { - msg_printf(NULL, MSG_ERROR, "Couldn't write state file: %d", retval); + msg_printf(NULL, MSG_ERROR, + "Couldn't write state file: %s", boincerror(retval) + ); boinc_sleep(60.0); // if we can't write the state file twice in a row, something's hosed; @@ -506,7 +508,9 @@ bool CLIENT_STATE::do_something() { // retval = write_state_file_if_needed(); if (retval) { - msg_printf(NULL, MSG_ERROR, "Couldn't write state file: %d; giving up", retval); + msg_printf(NULL, MSG_ERROR, + "Couldn't write state file: %s; giving up", boincerror(retval) + ); exit(retval); } } @@ -1286,7 +1290,9 @@ int CLIENT_STATE::detach_project(PROJECT* project) { get_statistics_filename(project->master_url, path); retval = boinc_delete_file(path); if (retval) { - msg_printf(project, MSG_ERROR, "Can't delete statistics file: %d\n", retval); + msg_printf(project, MSG_ERROR, + "Can't delete statistics file: %s\n", boincerror(retval) + ); } // delete account file @@ -1294,14 +1300,18 @@ int CLIENT_STATE::detach_project(PROJECT* project) { get_account_filename(project->master_url, path); retval = boinc_delete_file(path); if (retval) { - msg_printf(project, MSG_ERROR, "Can't delete account file: %d\n", retval); + msg_printf(project, MSG_ERROR, + "Can't delete account file: %s\n", boincerror(retval) + ); } // remove project directory and its contents // retval = remove_project_dir(*project); if (retval) { - msg_printf(project, MSG_ERROR, "Can't delete project directory: %d\n", retval); + msg_printf(project, MSG_ERROR, + "Can't delete project directory: %s\n", boincerror(retval) + ); } delete project; write_state_file(); diff --git a/client/pers_file_xfer.C b/client/pers_file_xfer.C index c7a6f91f88..89654a0a07 100644 --- a/client/pers_file_xfer.C +++ b/client/pers_file_xfer.C @@ -128,8 +128,8 @@ int PERS_FILE_XFER::start_xfer() { (is_upload ? "upload" : "download"), fip->name ); msg_printf( - fip->project, MSG_ERROR, "URL %s: error %d", - fip->get_current_url(is_upload), retval + fip->project, MSG_ERROR, "URL %s: %s", + fip->get_current_url(is_upload), boincerror(retval) ); fxp->file_xfer_retval = retval; @@ -216,9 +216,9 @@ bool PERS_FILE_XFER::poll() { } else { if (log_flags.file_xfer) { msg_printf( - fip->project, MSG_INFO, "Temporarily failed %s of %s: %d", + fip->project, MSG_INFO, "Temporarily failed %s of %s: %s", is_upload?"upload":"download", fip->name, - fxp->file_xfer_retval + boincerror(fxp->file_xfer_retval) ); } handle_xfer_failure(); diff --git a/client/scheduler_op.C b/client/scheduler_op.C index ce7b1b2254..f36cf4e98f 100644 --- a/client/scheduler_op.C +++ b/client/scheduler_op.C @@ -60,7 +60,7 @@ bool SCHEDULER_OP::check_master_fetch_start() { retval = init_master_fetch(p); if (retval) { msg_printf(p, MSG_ERROR, - "Couldn't start master page download: %d", retval + "Couldn't start master page download: %s", boincerror(retval) ); if (p->tentative) { p->attach_failed(ATTACH_FAIL_INIT); diff --git a/doc/community.php b/doc/community.php index 911c79907a..8e45ed297c 100644 --- a/doc/community.php +++ b/doc/community.php @@ -94,6 +94,9 @@ If you have an opinion, please contact Banners for BOINC projects from Anthony Hern: with and without the BOINC logo. +Other banners: +here and +here.
The 'B in a circle' icon was designed by Tim Lan. The Mac variant was contributed by Juho Viitasalo. diff --git a/doc/index.php b/doc/index.php index 31603e17d3..e74430b997 100644 --- a/doc/index.php +++ b/doc/index.php @@ -34,7 +34,7 @@ computer resources
If you own a computer (Windows, Mac, Linux or Unix) - you can help scientific research projects in many areas: + you can participate in scientific research in many areas: