Commit Graph

55 Commits

Author SHA1 Message Date
Charlie Fenton 5273a32b68 Mgr: When launching Mac client as a daemon, allow time for it to start
svn path=/trunk/boinc/; revision=25027
2012-01-11 11:33:03 +00:00
Rom Walton 687195e7f0 Quick Updates
svn path=/trunk/boinc/; revision=24510
2011-11-03 02:35:04 +00:00
David Anderson b16f603a8a - client (and API and manager): change the data structure
used for system process info
    Old: vector of PROCINFO.
        Descendants of a process were found by recursively
        iterating through the vector.
        Operations are O(n)
    New: map of (id, PROCINFO),
        and each PROCINFO has a vector of its children.
        Operations are O(log(n))
    Also combined Mac/Win/Linux variants of code that
    was essentially the same.


svn path=/trunk/boinc/; revision=24117
2011-09-02 17:45:29 +00:00
Charlie Fenton 12360ca0a5 MGR: Further refinements to Client shutdown logic on Manager Exit
svn path=/trunk/boinc/; revision=22289
2010-08-24 02:41:12 +00:00
Charlie Fenton 7c032fe498 MGR: Further refinements to Client shutdown logic on Manager Exit
svn path=/trunk/boinc/; revision=22287
2010-08-24 01:45:12 +00:00
Charlie Fenton 7deae1ff14 MGR: Tweak text in crash alert
svn path=/trunk/boinc/; revision=21948
2010-07-14 23:52:15 +00:00
Rom Walton 13b040f0df - MGR: Fix build break.
- MGR: Change the crash detect dialog target to 'crash_detection'
    
    clientgui/
        BOINCClientManager.cpp

svn path=/trunk/boinc/; revision=21940
2010-07-14 19:46:27 +00:00
Charlie Fenton 87ce458369 MGR: Auto-restart client on Windows even if service install; show an alert if we auto-restart client 3 times within 30 minutes.
svn path=/trunk/boinc/; revision=21933
2010-07-14 11:54:20 +00:00
Rom Walton 329303b323 - Remove need for boinc.dll from the client.
client/
        hostinfo_win.cpp
        main.cpp
    clientctrl/
        boincsvcctrl.cpp
    clientgui/
        BOINCClientManager.cpp
        BOINCGUIApp.cpp
        BOINCGUIApp.h
        stdwx.h
    clienttray/
        tray_win.cpp
        tray_win.h
    lib/
        boinc_win.h
        daemonmgt.cpp (Deleted)
        daemonmgt.h (Added)
        daemonmgt_win.cpp (Added)
        idlemon.h (Added)
        idlemon_win.cpp (Added)
        idlemon_win.h (Deleted)
    win_build/
        boinc.sln
        boinc_dll.vcproj
        boincmgr.vcproj
        boincsvcctrl.vcproj
        boinctray.vcproj
        libboinc.vcproj

svn path=/trunk/boinc/; revision=19576
2009-11-13 21:23:15 +00:00
Charlie Fenton f989eba75a MGR: Bug fixes for Linux
svn path=/trunk/boinc/; revision=18925
2009-08-27 01:46:20 +00:00
Charlie Fenton 1829b18cf1 MGR: on Linux, accept 2 optional args: -clientdir or -e and -datadir or -d, use when launching client
svn path=/trunk/boinc/; revision=18919
2009-08-26 11:53:51 +00:00
Charlie Fenton 25b79f7c5c MGR: on Linux, accept 2 optional args: -clientdir or -e and -datadir or -d, use when launching client
svn path=/trunk/boinc/; revision=18917
2009-08-26 07:47:49 +00:00
Charlie Fenton 54fa762fe6 MGR: Compile fix of Rom's fix to David's compile fix
svn path=/trunk/boinc/; revision=18434
2009-06-16 20:30:42 +00:00
Rom Walton 70dcfc0ea1 bug fix for last commit.
svn path=/trunk/boinc/; revision=18432
2009-06-16 20:02:19 +00:00
David Anderson 0939ec0d3a - don't include config.h from parse.h
- manager: compile fix


svn path=/trunk/boinc/; revision=18429
2009-06-16 19:22:11 +00:00
Charlie Fenton 9bc71f510e MGR: If LOCKFILE doesn't already exist, core client isn't running so skip further testing
svn path=/trunk/boinc/; revision=18421
2009-06-15 22:40:12 +00:00
Charlie Fenton 76b9af4153 MGR: If LOCKFILE doesn't already exist, core client isn't running so skip further testing
svn path=/trunk/boinc/; revision=18420
2009-06-15 22:33:07 +00:00
Charlie Fenton b544a24a74 Mac MGR: strip /n from command field of PROCINFO struct to fix <exclusive_app>; KillClient() gets pid from procinfo_setup() except on Windows; restore boinc.jpg file
svn path=/trunk/boinc/; revision=18385
2009-06-12 00:42:09 +00:00
Charlie Fenton c814ae229a lib: Fix FILE_LOCK::unlock() to reset fd to -1 so FILE_LOCK works correctly with repeated calls.
svn path=/trunk/boinc/; revision=18320
2009-06-07 00:29:35 +00:00
Charlie Fenton ee77d27727 MGR: Implement CBOINCClientManager::IsBOINCRunning()for Windows
svn path=/trunk/boinc/; revision=18319
2009-06-07 00:10:32 +00:00
Charlie Fenton 9b099daea7 MGR: Implement CBOINCClientManager::IsBOINCRunning()for Windows
svn path=/trunk/boinc/; revision=18318
2009-06-06 13:35:58 +00:00
Charlie Fenton 8304ad8aea MGR: Implement CBOINCClientManager::KillClient() for Windows.
svn path=/trunk/boinc/; revision=18317
2009-06-06 13:11:16 +00:00
Charlie Fenton 5dc3068df8 MGR: Use code like get_client_mutex() to determine if client is running; KillClient() uses process name if we don't have pid.
svn path=/trunk/boinc/; revision=18316
2009-06-06 00:26:44 +00:00
Charlie Fenton 4b1b320782 MGR: CBOINCClientManager::ProcessExists() finds the process by name if we don't have a pid (Mac, Linux) or process HANDLE (Windows
svn path=/trunk/boinc/; revision=18311
2009-06-05 09:26:04 +00:00
Charlie Fenton f4d0595e52 svn path=/trunk/boinc/; revision=18133 2009-05-16 02:26:38 +00:00
Charlie Fenton 6b0a9803c9 MGR: CBOINCClientManager::IsBOINCCoreRunning() tests whether the Client process exists, rather than doing an RPC
svn path=/trunk/boinc/; revision=18131
2009-05-16 02:06:45 +00:00
Charlie Fenton 2f199144da MGR: CBOINCClientManager::IsBOINCCoreRunning() tests whether the Client process exists, rather than doing an RPC
svn path=/trunk/boinc/; revision=18129
2009-05-16 01:28:18 +00:00
Charlie Fenton d758dd78b6 MGR: IsBOINCCoreRunning() tests whether Client process exists, not by doing an RPC which hangs Manager if Client is running but unresponsive
svn path=/trunk/boinc/; revision=18116
2009-05-15 09:07:32 +00:00
Charlie Fenton 35688bb8e9 MGR: Update m_dtCachedCCStatusTimestamp only when RPC completes
svn path=/trunk/boinc/; revision=18097
2009-05-14 12:36:09 +00:00
Charlie Fenton 287806e4b0 Mac MGR: Changes to build with full Unicode support with wxWidgets-2.8.10
svn path=/trunk/boinc/; revision=17844
2009-04-17 11:28:27 +00:00
Eric J. Korpela b8fc6cbf81 Fixed missing includes when building manager on unix.
svn path=/trunk/boinc/; revision=17050
2009-01-27 20:57:47 +00:00
Charlie Fenton 951e398547 MGR: allow time for Client to start up before launching repeatedly
svn path=/trunk/boinc/; revision=17029
2009-01-27 00:55:51 +00:00
Charlie Fenton 7b344f8318 MGR: allow time for Client to start up before launching repeatedly
svn path=/trunk/boinc/; revision=17025
2009-01-27 00:40:27 +00:00
Rom Walton c0aca2f4b7 - MGR: Don't use wxT() to describe parameters passed to GUI RPCs.
clientgui/
        BOINCClientManager.cpp

svn path=/trunk/boinc/; revision=17022
2009-01-26 21:54:10 +00:00
Charlie Fenton 272686d94b MGR: fix compile error.
svn path=/trunk/boinc/; revision=16973
2009-01-22 10:26:51 +00:00
Rom Walton c57c8b63bc - MGR: Make sure the UI thread doesn't call a GUI RPC
that uses the SET_LOCALE class.
        
    clientgui/
        BOINCClientManager.cpp

svn path=/trunk/boinc/; revision=16971
2009-01-21 23:08:32 +00:00
Rom Walton ade7eb5d1f - MGR: Tweak the shutdown logic so that it can still shutdown the
BOINC service even though it didn't start it.
    - MGR: It BOINC Manager starts the BOINC deamon on the mac don't bother
        trying to shut it down. (reverting to previous behaviour)
        
    clientgui/
        BOINCBaseFrame.cpp
        BOINCClientManager.cpp, .h
        BOINCTaskBar.cpp

svn path=/trunk/boinc/; revision=16427
2008-11-05 16:07:12 +00:00
Rom Walton 050150beb2 - MGR: Create an Exit dialog for the Manager.
- MGR: Allow the manager to shutdown the CC even when it was installed as
        a daemon.
    - MGR: Code cleanup.

    clientgui/
        AdvancedFrame.cpp, .h
        BOINCBaseFrame.cpp
        BOINCClientManager.cpp
        BOINCGUIApp.cpp, .h
        DlgExitMessage.cpp, .h (Added)
        SkinManager.cpp
    win_build/
        boincmgr_curl.vcproj

svn path=/trunk/boinc/; revision=16405
2008-11-04 08:08:16 +00:00
Rom Walton 1f1cc48a4c - client: include precompiled header in rr_sim.cpp so memory
leak detection will work.
    - MGR: Have the BaseFrame call a function to determine if the
        selection list should be saved instead of traversing
        the application pointer.  Each view just overrides the function
        returning a true/false value.  We don't have to worry about null
        pointers and the like.
    - MGR: BOINCGUIApp should never need to know how either the views
        work or the document.  Move the code that determines which
        RPCs should be fired into each of the views.  Have the document
        look for it there.
    - MGR: Reduce duplicate code for hiding and showing an application
    - MGR: Move some Windows and Mac specific code into functions
        and streamline the application startup and shutdown rountines.
    - MGR: Move the event processing that was in BOINCGUIApp into the
        BaseFrame.
    - MGR: General cleanup.
    - MGR: Doxygen comments.
    - MGR: Cleanup some warnings.

    client/
        rr_sim.cpp
    clientgui/
        AdvancedFrame.cpp, .h
        AsyncRPC.cpp, .h
        BOINCBaseFrame.cpp, .h
        BOINCBaseView.cpp, .h
        BOINCClientManager.cpp
        BOINCGUIApp.cpp, .h
        BOINCTaskBar.cpp
        MainDocument.cpp, .h
        sg_BoincSimpleGUI.cpp, .h
        ViewProjects.cpp, .h
        ViewTransfers.cpp, .h
        ViewWork.cpp, .h
        WelcomePage.cpp
    win_build/installerv2/
        BOINC.ism
        BOINCx64.ism
    win_build/
        sim.vcproj

svn path=/trunk/boinc/; revision=16357
2008-10-29 22:44:55 +00:00
David Anderson 5518259dd0 - client: accept --insecure flag even if not compiled with -DSANDBOX
- manager: pass --insecure flab only if compiled with -DSANDBOX
        (from Nicolas; fixes #762)

svn path=/trunk/boinc/; revision=16328
2008-10-28 02:21:26 +00:00
David Anderson 4f66bb4c95 - added copyright and license info to .C, .cpp, .h files
- scheduler: fix bug in adaptive replication:
    if send an unreplicated job to untrusted host,
    set both wu.target_nresults and wu.min_quorum to app.target_nresults.

svn path=/trunk/boinc/; revision=15762
2008-08-06 18:36:30 +00:00
Eric J. Korpela 47ff3d9bd4 Fix for compilers that can't concatenate a normal character string
to a wide character string.  For example L"Hi "  "There" works in GCC
but not in some compilers because L"Hi " has a different type than
"There". This primarily shows up in SunStudio compilers.  The fix is
ugly, but it works.


svn path=/trunk/boinc/; revision=15568
2008-07-08 20:05:07 +00:00
David Anderson 41dae10b35 svn path=/trunk/boinc/; revision=15354 2008-06-03 17:58:53 +00:00
Rom Walton 28c82bff7b - MGR: BOINC commandline options require the '--' in front
of the option. '-' just causes the CC to exit while
        printing its help fr the commandline options.
        
    clientgui/
        BOINCClientManager.cpp

svn path=/trunk/boinc/; revision=15214
2008-05-14 21:42:06 +00:00
Rom Walton 13a746ca55 Quick Updates
svn path=/trunk/boinc/; revision=15212
2008-05-14 21:32:16 +00:00
Rom Walton bb2b4b6fce Quick Updates
svn path=/trunk/boinc/; revision=15210
2008-05-14 21:18:31 +00:00
Rom Walton 28a94cd068 Quick Updates
svn path=/trunk/boinc/; revision=15208
2008-05-14 21:14:37 +00:00
Rom Walton 3e51ca7546 - MGR: Fix trace statements in StartupBOINC()
- MGR: Add some more trace statements for Linux startup.

    clientgui/
        BOINCClientManager.cpp

svn path=/trunk/boinc/; revision=15206
2008-05-14 21:09:07 +00:00
Rom Walton 3dc77154e5 - MGR/CLI: remove direct references to CreateEnvironmentBlock and
DestroyEnvironmentBlock since Win98 doesn't support them. This
        functionality is only required for the Windows sandbox implementation
        anyway.
    - LIB: Remove direct reference to OpenThread in win_util.C since it
        isn't supported on Win98.
    - MGR: Another fix for CC execution on a Linux machine.
        
    client/
        app_start.C
    clientgui/
        BOINCClientManager.cpp
    lib/
        proc_control.C
        win_util.C

svn path=/trunk/boinc/; revision=15117
2008-05-02 15:59:37 +00:00
Rom Walton 226a78443d - MGR: On Linux, start the manager from the current directory instead
of using argv[0] to build the path.
    
    clientgui/
        BOINCClientManager.cpp

svn path=/trunk/boinc/; revision=15093
2008-04-25 18:36:41 +00:00