From c669422dbbd0bb3949ecd968eb558350507170fa Mon Sep 17 00:00:00 2001 From: David Anderson Date: Sun, 9 Nov 2003 23:45:31 +0000 Subject: [PATCH] *** empty log message *** svn path=/trunk/boinc/; revision=2653 --- api/graphics_api.C | 2 -- apps/upper_case.C | 10 ++++++++-- checkin_notes | 21 +++++++++++++++++++++ client/client_state.C | 8 +++++--- client/cs_scheduler.C | 1 + client/scheduler_op.C | 2 +- lib/filesys.C | 2 +- 7 files changed, 37 insertions(+), 9 deletions(-) diff --git a/api/graphics_api.C b/api/graphics_api.C index bc343ec2f4..90d866712f 100755 --- a/api/graphics_api.C +++ b/api/graphics_api.C @@ -20,8 +20,6 @@ // The part of the BOINC app lib having to do with graphics. // This code is NOT linked into the core client. -#include "config.h" - #ifdef _WIN32 #include extern DWORD WINAPI win_graphics_event_loop( LPVOID duff ); diff --git a/apps/upper_case.C b/apps/upper_case.C index 0e2290ce43..68755573f8 100755 --- a/apps/upper_case.C +++ b/apps/upper_case.C @@ -132,6 +132,12 @@ int main(int argc, char **argv) { retval = boinc_init(standalone); if (retval) exit(retval); + // can't write to stderr until after boinc_init() + // + for (i=0; iproject == project ) { http_ops->remove(&scheduler_op->http_op); + scheduler_op->state = SCHEDULER_OP_STATE_IDLE; } // mark results as server-acked. diff --git a/client/cs_scheduler.C b/client/cs_scheduler.C index 7ff242924d..03762a4782 100644 --- a/client/cs_scheduler.C +++ b/client/cs_scheduler.C @@ -342,6 +342,7 @@ bool CLIENT_STATE::scheduler_rpc_poll() { switch(scheduler_op->state) { case SCHEDULER_OP_STATE_IDLE: + if (activities_suspended) break; if (exit_when_idle && contacted_sched_server) { should_get_work = false; } else { diff --git a/client/scheduler_op.C b/client/scheduler_op.C index 32f0bcf8a9..1280b597cf 100644 --- a/client/scheduler_op.C +++ b/client/scheduler_op.C @@ -646,7 +646,7 @@ int SCHEDULER_REPLY::parse(FILE* in, PROJECT* project) { } else if (parse_str(buf, "1){ msg_printf(project, MSG_ERROR, "SCHEDULER_REPLY::parse(): unrecognized %s\n", buf); } } diff --git a/lib/filesys.C b/lib/filesys.C index 5f6fc5cd86..657ecfde1a 100755 --- a/lib/filesys.C +++ b/lib/filesys.C @@ -77,7 +77,7 @@ int is_file(char* path) { return sbuf.st_mode & S_IFREG; } -int is_dir(char* path) { +int is_dir(const char* path) { struct stat sbuf; memset(&sbuf, 0, sizeof(struct stat)); stat(path, &sbuf);