*** empty log message ***

svn path=/trunk/boinc/; revision=10633
This commit is contained in:
Rom Walton 2006-07-12 08:00:26 +00:00
parent 91085c0896
commit 8c2c16d8d1
2 changed files with 15 additions and 11 deletions

View File

@ -7474,3 +7474,11 @@ David 11 July 2006
client/
main.C
Rom 12 July 2006
- Bug Fix: Remove extra waiting loop for Win9x based platforms
when shutting down a console window now that quit_client()
does the waiting.
client/
main.C

View File

@ -152,19 +152,15 @@ void resume_client() {
// Trap logoff and shutdown events on Win9x so we can clean ourselves up.
LRESULT CALLBACK Win9xMonitorSystemWndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
{
if (uMsg == WM_QUERYENDSESSION)
{
if (uMsg == WM_QUERYENDSESSION) {
BOINCTRACE("***** Win9x Monitor System Shutdown/Logoff Event Detected *****\n");
// Win95 is stupid, we really only need to wait until we have
// successfully shutdown the active tasks and cleaned everything
// up. Luckly WM_QUERYENDSESSION is sent before Win9x checks for any
// existing console and that gives us a chance to clean-up and
// then clear the console window. Win9x will not close down
// a console window if anything is displayed on it.
quit_client();
while (!boinc_cleanup_completed) {
Sleep(1000); // Win95 is stupid, we really only need to wait until we have
// successfully shutdown the active tasks and cleaned everything
// up. Luckly WM_QUERYENDSESSION is sent before Win9x checks for any
// existing console and that gives us a chance to clean-up and
// then clear the console window. Win9x will not close down
// a console window if anything is displayed on it.
}
Sleep(2000); // For good measure.
system("cls");
return TRUE;
}