INTEGRATION: CWS qssyncterm (1.4.180); FILE MERGED
2007/08/02 14:08:25 hro 1.4.180.1: #149979# Wait at most 30 seconds to give Quickstarter enough time to terminate before setup continues
This commit is contained in:
parent
646d54c521
commit
f9747af5e4
1 changed files with 11 additions and 2 deletions
|
@ -4,9 +4,9 @@
|
|||
*
|
||||
* $RCSfile: shutdown_quickstart.cxx,v $
|
||||
*
|
||||
* $Revision: 1.4 $
|
||||
* $Revision: 1.5 $
|
||||
*
|
||||
* last change: $Author: rt $ $Date: 2005-09-07 16:34:27 $
|
||||
* last change: $Author: ihi $ $Date: 2007-08-17 13:35:41 $
|
||||
*
|
||||
* The Contents of this file are made available subject to
|
||||
* the terms of GNU Lesser General Public License Version 2.1.
|
||||
|
@ -59,6 +59,15 @@ static BOOL CALLBACK EnumWindowsProc( HWND hWnd, LPARAM lParam )
|
|||
if ( uMsgShutdownQuickstart )
|
||||
SendMessageA( hWnd, uMsgShutdownQuickstart, 0, 0 );
|
||||
|
||||
|
||||
HANDLE hProcess = OpenProcess( SYNCHRONIZE, FALSE, dwProcessId );
|
||||
|
||||
if ( hProcess )
|
||||
{
|
||||
WaitForSingleObject( hProcess, 30000 ); // Wait at most 30 seconds for process to terminate
|
||||
CloseHandle( hProcess );
|
||||
}
|
||||
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue