fix busy loop if child exits without closing the child properly
This commit is contained in:
@@ -252,8 +252,7 @@ void RunChild()
|
|||||||
{
|
{
|
||||||
int iCmd;
|
int iCmd;
|
||||||
DWORD iActual;
|
DWORD iActual;
|
||||||
ReadFile( hFromStdout, &iCmd, sizeof(iCmd), &iActual, NULL );
|
if( !ReadFile(hFromStdout, &iCmd, sizeof(iCmd), &iActual, NULL) )
|
||||||
if( iCmd == 0 )
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
/* Ugly: the new process can't execute GetModuleFileName on this process,
|
/* Ugly: the new process can't execute GetModuleFileName on this process,
|
||||||
|
|||||||
Reference in New Issue
Block a user