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:
Vadim Zeitlin
2008-03-22 03:50:35 +00:00
parent eacb6b56a6
commit 4d425deeb2
3 changed files with 34 additions and 36 deletions

View File

@@ -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