return bool from wxStreamTempInputBuffer::Update() indicating if anything was done; don't sleep in wxExecute() if IO is coming
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52678 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1313,17 +1313,11 @@ bool wxAppTraits::CheckForRedirectedIO(wxExecuteData& execData)
|
||||
#if HAS_PIPE_INPUT_STREAM
|
||||
bool hasIO = false;
|
||||
|
||||
if ( execData.bufOut )
|
||||
{
|
||||
execData.bufOut->Update();
|
||||
if ( execData.bufOut && execData.bufOut->Update() )
|
||||
hasIO = true;
|
||||
}
|
||||
|
||||
if ( execData.bufErr )
|
||||
{
|
||||
execData.bufErr->Update();
|
||||
if ( execData.bufErr && execData.bufErr->Update() )
|
||||
hasIO = true;
|
||||
}
|
||||
|
||||
return hasIO;
|
||||
#else // !HAS_PIPE_INPUT_STREAM
|
||||
|
Reference in New Issue
Block a user