fixed IO redirection to work in wxExecute() in console applications (including the case when the child process outputs more than pipe buffer size) by using wxSelectDispatcher for multiplexing

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52692 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2008-03-22 14:10:54 +00:00
parent a83ca5fbf5
commit 33343395da
3 changed files with 177 additions and 73 deletions

View File

@@ -58,11 +58,9 @@ int wxGUIAppTraits::WaitForChild(wxExecuteData& execData)
endProcData.tag = AddProcessCallback
(
&endProcData,
execData.pipeEndProcDetect.Detach(wxPipe::Read)
execData.GetEndProcReadFD()
);
execData.pipeEndProcDetect.Close();
// prepare to wait for the child termination: show to the user that we're
// busy and refuse all input unless explicitly told otherwise