]> git.saurik.com Git - wxWidgets.git/blobdiff - src/unix/apptraits.cpp
added the interface checker to the utils folder
[wxWidgets.git] / src / unix / apptraits.cpp
index b81b55db1717af5a03a9fd3d40e03f0383134678..a19b8e0e8758007538d014c86a3d591923e23fa6 100644 (file)
@@ -47,21 +47,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.pipeEndProcDetect.Detach(wxPipe::Read)
+                         execData.GetEndProcReadFD()
                       );
-
-    execData.pipeEndProcDetect.Close();
+    endProcData.async = false;
 
 
     // prepare to wait for the child termination: show to the user that we're