diff --git a/checkin_notes b/checkin_notes index ad04a4490d..8e573cb9ac 100644 --- a/checkin_notes +++ b/checkin_notes @@ -6235,3 +6235,19 @@ David 26 Aug 2010 cs_notice.cpp lib/ common_defs.h + +David 27 Aug 2010 + - client: ignore case in names of "exclusive apps" + and exclusive GPU apps + - client: fix bug that caused GPU apps to not be + suspended or resumed immediately after + exclusive GPU app transition + - client: in log message, instead of saying + "fetching tasks for GPU", say which kind of GPU + + client/ + app.cpp + cs_prefs.cpp + scheduler_op.cpp + lib/ + str_replace.h diff --git a/client/app.cpp b/client/app.cpp index 2d97f02c0b..93d33c01ac 100644 --- a/client/app.cpp +++ b/client/app.cpp @@ -52,7 +52,6 @@ #include #endif -#include "client_state.h" #include "error_numbers.h" #include "filesys.h" @@ -60,6 +59,9 @@ #include "parse.h" #include "shmem.h" #include "str_util.h" +#include "str_replace.h" + +#include "client_state.h" #include "client_msgs.h" #include "procinfo.h" #include "sandbox.h" @@ -292,7 +294,7 @@ bool app_running(vector& piv, const char* p) { for (unsigned int i=0; inresults_returned) { msg_printf(p, MSG_INFO, - "Reporting %d completed tasks, requesting new tasks%s", + "Reporting %d completed tasks, requesting new tasks for %s", p->nresults_returned, buf ); } else { - msg_printf(p, MSG_INFO, "Requesting new tasks%s", buf); + msg_printf(p, MSG_INFO, "Requesting new tasks for %s", buf); } } else { if (p->nresults_returned) { diff --git a/lib/str_replace.h b/lib/str_replace.h index e112b4c6f2..9dff6cf526 100644 --- a/lib/str_replace.h +++ b/lib/str_replace.h @@ -36,4 +36,16 @@ extern size_t strlcat(char *dst, const char *src, size_t size); extern const char *strcasestr(const char *s1, const char *s2); #endif +#if !defined(HAVE_STRCASECMP) +inline int strcasecmp(const char* s1, const char* s2) { + while (*s1 && *s2) { + char c1 = tolower(*s1++); + char c2 = tolower(*s2++); + if (c1 != c2) return 1; // don't worry about +/- + } + if (*s1 || *s2) return 1; + return 0; +} +#endif + #endif