*** empty log message ***

svn path=/trunk/boinc/; revision=3212
This commit is contained in:
David Anderson 2004-04-03 00:43:55 +00:00
parent e1579acc89
commit 7eb31c0819
5 changed files with 27 additions and 18 deletions

View File

@ -11265,4 +11265,12 @@ Rom April 1 2004
NOTE: Still hasn't fixed the performance issue(s) on my machine though.
api/
boinc_api.c
boinc_api.c
David April 2 2004
- Client: fixed for disabling network activity
cs_files.C
cs_scheduler.C
hostinfo_unix.C
main.C

View File

@ -51,7 +51,7 @@ bool CLIENT_STATE::start_new_file_xfer(PERS_FILE_XFER& pfx) {
unsigned int i;
int n;
if (activities_suspended) return false;
if (activities_suspended || network_suspended) return false;
// limit the number of file transfers per project
//

View File

@ -454,7 +454,7 @@ bool CLIENT_STATE::scheduler_rpc_poll() {
switch(scheduler_op->state) {
case SCHEDULER_OP_STATE_IDLE:
if (activities_suspended) break;
if (activities_suspended || network_suspended) break;
if (exit_when_idle && contacted_sched_server) {
should_get_work = false;
} else {

View File

@ -248,7 +248,7 @@ int HOST_INFO::get_host_info() {
// Get model
mib[0] = CTL_HW;
mib[1] = HW_MODEL;
len = sizeof(host.p_model);
len = sizeof(p_model);
sysctl(mib, 2, &p_model, &len, NULL, 0);
#endif
#endif

View File

@ -177,20 +177,21 @@ void resume_client(int a) {
BOOL WINAPI ConsoleControlHandler ( DWORD dwCtrlType ){
BOOL bReturnStatus = FALSE;
switch( dwCtrlType ){
case CTRL_C_EVENT:
if(gstate.activities_suspended)
resume_client(NULL);
else
susp_client(NULL);
bReturnStatus = TRUE;
break;
case CTRL_BREAK_EVENT:
case CTRL_CLOSE_EVENT:
case CTRL_LOGOFF_EVENT:
case CTRL_SHUTDOWN_EVENT:
quit_client(NULL);
bReturnStatus = TRUE;
break;
case CTRL_C_EVENT:
if(gstate.activities_suspended) {
resume_client(NULL);
} else {
susp_client(NULL);
}
bReturnStatus = TRUE;
break;
case CTRL_BREAK_EVENT:
case CTRL_CLOSE_EVENT:
case CTRL_LOGOFF_EVENT:
case CTRL_SHUTDOWN_EVENT:
quit_client(NULL);
bReturnStatus = TRUE;
break;
}
return bReturnStatus;
}