X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/33343395da57eb0caf21384aec5fa6e858db4353..b666ade78496cd91d648fcfe2fd6b79ce2b15e33:/src/unix/apptraits.cpp?ds=sidebyside diff --git a/src/unix/apptraits.cpp b/src/unix/apptraits.cpp index 97c3437307..a2698eef66 100644 --- a/src/unix/apptraits.cpp +++ b/src/unix/apptraits.cpp @@ -23,10 +23,12 @@ #pragma hdrstop #endif +#include "wx/apptrait.h" + #ifndef WX_PRECOMP + #include "wx/utils.h" #endif // WX_PRECOMP -#include "wx/apptrait.h" #include "wx/unix/execute.h" // ============================================================================ @@ -47,19 +49,13 @@ int wxGUIAppTraits::WaitForChild(wxExecuteData& execData) // to process the GUI events while waiting for the child termination wxEndProcessData endProcData; - - // we may have process for capturing the program output, but it's - // not used in wxEndProcessData in the case of sync execution - endProcData.process = NULL; - - // sync execution: indicate it by negating the pid - endProcData.pid = -execData.pid; - + endProcData.pid = execData.pid; endProcData.tag = AddProcessCallback ( &endProcData, execData.GetEndProcReadFD() ); + endProcData.async = false; // prepare to wait for the child termination: show to the user that we're