Commit Graph

3002 Commits

Author SHA1 Message Date
David Anderson 70ae27f032 - client: if a project has DCF > 90 and has projected deadline misses,
give its jobs priority.
    (from John McLeod)

svn path=/trunk/boinc/; revision=14201
2007-11-14 17:15:46 +00:00
David Anderson 715f4d46dd - client: fix bug in parsing of <link rel=boinc_scheduler ...>
element in master files.  fixes #467

svn path=/trunk/boinc/; revision=14167
2007-11-12 23:08:43 +00:00
David Anderson bf227ea8b1 - DB: remove "lang" from schema - not used
- DB: added parent_type to forum
- user web: BoincUser uses caching by default
- client: fixed small memory leak in statistics parsing

svn path=/trunk/boinc/; revision=14130
2007-11-10 00:32:42 +00:00
David Anderson cd9538589a - client: when starting an app, and an input/app file is not available,
show the file name and error code in the message
    that's appended to the job's stderr_out.

svn path=/trunk/boinc/; revision=14114
2007-11-07 19:32:32 +00:00
Rom Walton ae321f631b - CC: Treat the return code 0xC0000142 as though it is a temporary
error. 0xC0000142 means STATUS_DLL_INIT_FAILED which can happen
        when an application attempts to create a new process while the OS
        is shutting down, and when the desktop heap is fully utilized.
        
        This will keep an app from erroring out during Vista's shutdown
        sequence. Only a reboot can fix the desktop heap.
        
    client/
        app.h
        app_control.C

svn path=/trunk/boinc/; revision=14080
2007-11-05 15:03:16 +00:00
Rom Walton eb00da367a - CC: Remove the event handler for CTRL-C, or rather change it
so that it means the same thing as it does to other apps, just
        quit the CC instead of suspending or resuming the CC.
        
    client/
        main.C

svn path=/trunk/boinc/; revision=14022
2007-11-02 17:37:35 +00:00
David Anderson a3a162d43d - client: fix bug where account settings (e.g. don't get new work)
weren't being updated from account managers.
    This was because BAM! wasn't returning the <authenticator>
    in accounts already described in the request message.
    (This violates the protocol, but it's reasonable so what the heck).
    The client was ignoring all <account> records without an authenticator.
    Solution: allow <account> records without an authenticator.
- Manager: fix crash after the Manager kills a graphics app
    for a no-longer-running result.
    Changed loop logic to go forwards instead of backwards.

svn path=/trunk/boinc/; revision=14013
2007-10-31 23:22:24 +00:00
David Anderson 7c20a8c5cf - client: add <max_stdout_file_size> and <max_stderr_file_size>
cc_config.xml options to change log file size limit
    from the default of 2 MB

svn path=/trunk/boinc/; revision=13955
2007-10-24 22:48:47 +00:00
David Anderson 625b129abc - client: fixed bug that broke idle detection on Unix.
The problem: the various checks were surrounded by things like
    #ifdef HAVE__DEV_MOUSE
    If the host on which the client is built doesn't have a mouse
    (as is the case with our build machine)
    then the resulting executable doesn't check /dev/mouse,
    even if it exists on the target host.
- removed configure checks for /dev/mouse, /dev/kbd, and /dev/tty1

svn path=/trunk/boinc/; revision=13947
2007-10-24 18:58:23 +00:00
Charlie Fenton c9718fb0b9 Mac client: Add 64-bit support for OS 10.5 (new platform x86_64-apple-darwin)
svn path=/trunk/boinc/; revision=13939
2007-10-24 00:44:42 +00:00
Rom Walton f77ad4b0aa - client: read_file_string was modified sometime ago to support tail
functionality, we really do want only the last 63KB of stderr
        for science applications.
    
    client/
        app_control.C

svn path=/trunk/boinc/; revision=13935
2007-10-23 14:50:02 +00:00
David Anderson 1e2a6c29b8 - client: remove unparsed XML error for <active_task_state>
- client: remove spurious error if include <alt_platform> in cc_config.xml

svn path=/trunk/boinc/; revision=13934
2007-10-22 23:56:10 +00:00
David Anderson 5e5a063ef5 - GUI RPC: fix format of <auth2> request
- GUI RPC: don't enable network on bad request

svn path=/trunk/boinc/; revision=13933
2007-10-22 23:41:12 +00:00
David Anderson 1239291e44 - client: add <active_task_state> to <active_task> elements in state file.
These are needed by some 3rd-party software that uses
    the state file instead of GUI RPCs


svn path=/trunk/boinc/; revision=13921
2007-10-21 20:54:24 +00:00
David Anderson e8c2a2927a - client: cc_config.xml can contain one or more <alt_platform> elements
specifying additional alternate platforms.

svn path=/trunk/boinc/; revision=13918
2007-10-20 16:10:57 +00:00
Charlie Fenton 7c4d159591 Fix double daylight savings time adjustment on UNIX/Linux
svn path=/trunk/boinc/; revision=13910
2007-10-18 23:31:55 +00:00
David Anderson ecee1b4968 - client(win) fix time-zone code
svn path=/trunk/boinc/; revision=13904
2007-10-18 15:15:22 +00:00
Charlie Fenton 23802ae381 Fix compiler warning
svn path=/trunk/boinc/; revision=13896
2007-10-18 08:18:22 +00:00
David Anderson e77278e00f - client: improve log messages
svn path=/trunk/boinc/; revision=13887
2007-10-17 23:30:05 +00:00
David Anderson a3f61b544f - client: fix bug where delay request from project is ignored
if no results are returned.
    Also, made the "Deferred" messages conditional on sched_op_debug
    Fixes #430 (from Rattledagger)

svn path=/trunk/boinc/; revision=13849
2007-10-15 22:08:24 +00:00
Charlie Fenton eb9cfe6b20 V6 GFX: Fix bugs in graphics compatibility with V5 applications
svn path=/trunk/boinc/; revision=13830
2007-10-11 11:02:48 +00:00
David Anderson fde3a60e13 - client/lib: compile fixes for OpenBSD
svn path=/trunk/boinc/; revision=13821
2007-10-10 15:57:59 +00:00
Frank Thomas fbcfeaf456 - Removed the svn:executable property from files that should not be executable,
like source code and text files. I skipped to check most files in html/
  and mac_*/ though.
- Added svn:executable to tools/watch_tcp because it has a shebang.


svn path=/trunk/boinc/; revision=13819
2007-10-10 09:25:40 +00:00
David Anderson 383b21dd5a - update_versions now generates <api_version> for all app versions
- user web: don't XML-escape team names in DB
- deleted obsolete files
- calloc() return check, fixes #277

svn path=/trunk/boinc/; revision=13817
2007-10-09 22:58:49 +00:00
Rom Walton 38d4aecc0b Delete outdated .cvsignore files
svn path=/trunk/boinc/; revision=13814
2007-10-09 18:03:21 +00:00
Charlie Fenton f0aff10b8e Fix updater build on Windows after sandbox reorganization
svn path=/trunk/boinc/; revision=13810
2007-10-09 13:28:00 +00:00
Charlie Fenton 772fd84afc Fix compile errors on Windows
svn path=/trunk/boinc/; revision=13807
2007-10-09 12:22:37 +00:00
Frank Thomas 3bfc78b511 Updated the postal address of the Free Software Foundation in all license headers. See http://lists.ssl.berkeley.edu/pipermail/boinc_dev/2007-October/008939.html for reference.
svn path=/trunk/boinc/; revision=13804
2007-10-09 11:35:47 +00:00
Charlie Fenton 3158d103ab client/manager/API: Finish & fix bugs in code cleanup to disentangle sandbox code from lib/.
svn path=/trunk/boinc/; revision=13798
2007-10-09 00:34:38 +00:00
David Anderson 0904cce97a - win compile fixes
svn path=/trunk/boinc/; revision=13785
2007-10-05 17:00:11 +00:00
David Anderson d302a5e107 - client/manager/API: code cleanup to disentangle sandbox code from lib/.
- move client sandbox-specific code to a new file, sandbox.C
    - remove g_use_sandbox from util.C; move to MainDocument.cpp (manager)
        and sandbox.C (client)
    - don't declare check_security() in util.h; it's not in util.C
    - don't call remove_project_owned_file_or_dir() in
        boinc_delete_file_aux() or boinc_rmdir();
        rather, at the points in the client that delete
        dirs that are usually owned by boinc_projects,
        call remove_project_owned_file_or_dir() first,
        then clean_out_dir().
    - rename boinc_exec() to switcher_exec() and move it to sandbox.C

Note: this change was sparked by needing to remove a call to getgrnam()
from boinclib, to avoid requiring the same version of glibc
on both compile and target hosts

svn path=/trunk/boinc/; revision=13784
2007-10-05 16:47:07 +00:00
Charlie Fenton 153502e60a CC: Fix crash bug: set app_client_shm.shm = NULL after calling detach_shmem_mmap.
svn path=/trunk/boinc/; revision=13779
2007-10-05 10:38:01 +00:00
David Anderson 066f01dc26 - Terminology in user web and client:
"task" instead of "result";
    "computer" instead of "host";
    "scheduler request" instead of "scheduler RPC"
    "access to Internet" instead of "access to reference web site"

svn path=/trunk/boinc/; revision=13774
2007-10-04 17:30:28 +00:00
Frank Thomas b46bda9d6f Added clean-local target to lib/Makefile.am to remove lib/boinccmd and
lib/boinccmd.unmodified on "make clean" and also added client/boinc.unmodified
and clientgui/boincmgr.unmodified to the respective clean-local targets.


svn path=/trunk/boinc/; revision=13772
2007-10-03 23:23:02 +00:00
Charlie Fenton 8c61fc38b6 Mac SCR: Create a new tiny utility gfx_switcher for use by screensaver to safely launch and kill gfx apps with user, group boinc_project
svn path=/trunk/boinc/; revision=13758
2007-10-03 06:16:58 +00:00
David Anderson 5496a6abe8 - client: if dont_contact_ref_site option is set,
contact a random project master URL rather than Google
    to trigger personal firewall alert on version change
- switcher: compile fix for Linux (strlcpy doesn't exist,
    and I didn't want to bring in libboinc.a)

svn path=/trunk/boinc/; revision=13756
2007-10-02 23:29:28 +00:00
Kevin Reed 5bc8553a3a - Screen Saver (merge from 5.10): Add additional information about the work
running when no graphics are available.  Increased the size to the box 
            displaying the message to accommodate larger image sizes.  Add code to 
            center images if less then the allowed max size of 450x166
    - Screen Saver (merge from 5.10):  If graphics are not available, then rotate
            through the currently running results (it will change every 10 seconds) 
            for display so that all are presented
    - Manager (merge from 5.10): During an auto-attach initiated by a project_init.xml file, Mozilla 
            based browsers are checking cookies in the domain  (ex: worldcommunitygrid.org) 
            for a project while IE cookies were only being checked for the full project 
            dns (www.worldcommunitygrid.org).  IE has been changed so that it will also 
            check the domain.  This mechanism is generic and can be used by any project or 
            account manager.
    - Manager (merge from 5.10): During an auto-attach initiated by a project_init.xml file, 
            the code to check for the Setup cookie within an IE browser would fail and cause 
            the attach to project dialogue to close with no warning in the event that there 
            is a cookie set for the project but there is not a Setup cookie.
    - WCG files:  Updated image, icon and installer files for WCG

svn path=/trunk/boinc/; revision=13755
2007-10-02 21:44:14 +00:00
David Anderson 8a423e83cb - client: fix bug where failure to get project list would result
in an empty project list file.
 - client: if failed to get project list file, retry in an hour, not immediately


svn path=/trunk/boinc/; revision=13753
2007-10-02 18:43:12 +00:00
Charlie Fenton fd8f4c8959 Remove unused variables
svn path=/trunk/boinc/; revision=13739
2007-10-02 10:28:42 +00:00
Charlie Fenton bb41946dd8 Sandbox: Fix a security hole so that switcher sets real user ID, saved set_user-ID, real group ID and saved set_group-ID
svn path=/trunk/boinc/; revision=13734
2007-10-02 09:31:20 +00:00
David Anderson cbe14c89fa - finished up the above
svn path=/trunk/boinc/; revision=13693
2007-09-27 21:28:32 +00:00
David Anderson aadcc979cd - client: first pass at fixing a fundamental design flaw:
there's a single GUI_HTTP object,
    and it works only if used sequentially,
    i.e. an op is started only after the previous one ends.
    This breaks if a GUI RPC triggerse and op while
    a project-list fetch (initiated by the client itself) is in progress.
    Or if two managers are connected at the same time,
    and both do HTTP ops.
    The solution: have a separate GUI_HTTP object for each GUI_RPC_CONN,
    and an additional one for use by the client itself.

svn path=/trunk/boinc/; revision=13692
2007-09-27 21:03:15 +00:00
Charlie Fenton e8a4acda63 V6 screensaver shows graphics for both V5 and V6 applications.
svn path=/trunk/boinc/; revision=13670
2007-09-26 10:17:43 +00:00
Charlie Fenton b2b3cdeff7 Mac/Linux/UNIX: V6 client uses shmget() to run V5 applications
svn path=/trunk/boinc/; revision=13667
2007-09-26 10:16:04 +00:00
David Anderson be7ad65989 - Compile fixes for Win
svn path=/trunk/boinc/; revision=13652
2007-09-25 16:39:30 +00:00
David Anderson f1f5930579 - client: removed everything related to screensaver
(deciding which app to use, implementing blanking interval, etc.)
    This logic is all now in the screensaver itself.
- GUI RPC: removed get/set screensaver mode RPCs
- API: added a "backwards_compatible_graphics" flag to BOINC_OPTIONS.
    V6 apps should set this.
    If set, the runtime library checks for graphics messages
    from the client, and launches/kills the graphics app (if any).
    The app will then work graphically with pre-V6 clients.
- removed some old files

svn path=/trunk/boinc/; revision=13651
2007-09-25 16:04:45 +00:00
David Anderson 227f9e6dd4 - use safe_strcpy() instead of strcpy() in a few places
in the client and db_dump
- scheduler: change REQ_FILE_PREFIX to use ../ instead of /tmp/
                 

svn path=/trunk/boinc/; revision=13646
2007-09-24 22:57:00 +00:00
David Anderson d8c6e5a17f - client: clean up (old undergrad-written) code related to pers file xfer.
The main goal is to fix a bug where,
        if a file is deleted from a project's download server,
        a client will keep trying to download it for 2 weeks.
        A download "file not found" is a permanent error, not transient.
        (fixes #383)
        In general, revised and renamed things to clarify the
        distinction between permanent and transient errors.
        Old functions:
            handle_xfer_failure(), try_next_url(), xfer_failed(), retry_or_backoff()
        New functions:
            permanent_failure(), transient_failure()
    - manager: compile fix for win (don't include sys/wait.h)

svn path=/trunk/boinc/; revision=13641
2007-09-24 18:32:55 +00:00
David Anderson bc5b979afb - Added new script "update_versions_v6"; use this instead of
update_versions to add version 6 apps.
    It looks for API_VERSION string in main executable,
    adds the API version to the app_version XML,
    and sets min_core_version to 6 for version 6+ apps
- API: include API_VERSION string
- convert tabs to spaces here and there
- scheduler: parse unused elements in <net_stats>
- ops/show_log.php: if no URL args, just show form (fixes #415)
- client: parse and store api_version (not used yet)

svn path=/trunk/boinc/; revision=13627
2007-09-21 18:10:54 +00:00
David Anderson 135c38a7e3 - client: get_proxy_settings GUI RPC requires authentication
svn path=/trunk/boinc/; revision=13623
2007-09-21 15:07:15 +00:00