- API: Flush buffers before terminating.

- SCR: Flush buffers before terminating.
    
    api/
        boinc_api.cpp
    clientscr/
        screensaver_win.cpp

svn path=/trunk/boinc/; revision=23286
This commit is contained in:
Rom Walton 2011-03-28 17:53:43 +00:00
parent 53177644f7
commit 3f8cc63c8f
3 changed files with 12 additions and 2 deletions

View File

@ -549,8 +549,6 @@ void boinc_exit(int status) {
}
}
fflush(NULL);
boinc_finish_diag();
// various platforms have problems shutting down a process
@ -558,6 +556,8 @@ void boinc_exit(int status) {
// or triggering endless exit()/atexit() loops.
//
BOINCINFO("Exit Status: %d", status);
fflush(NULL);
#if defined(_WIN32)
// Halt all the threads and cleans up.
TerminateProcess(GetCurrentProcess(), status);

View File

@ -1899,3 +1899,12 @@ Rom 28 Mar 2011
clientgui/
sg_DlgMessages.cpp, .h
Rom 28 Mar 2011
- API: Flush buffers before terminating.
- SCR: Flush buffers before terminating.
api/
boinc_api.cpp
clientscr/
screensaver_win.cpp

View File

@ -93,6 +93,7 @@ INT WINAPI WinMain(
// Instruct the OS to terminate the screensaver by any
// means nessassary.
fflush(NULL);
TerminateProcess(GetCurrentProcess(), retval);
return retval;