mirror of https://github.com/BOINC/boinc.git
- 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:
parent
53177644f7
commit
3f8cc63c8f
|
@ -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);
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue