]> git.saurik.com Git - wxWidgets.git/blobdiff - src/x11/evtloop.cpp
OpenVMS compile support update
[wxWidgets.git] / src / x11 / evtloop.cpp
index de6b1f8b83c14aa6a2ac295f3f1e16a36b35f0cf..2fbbbb421ce43c0a8751bf24e4a2c63e86d7de18 100644 (file)
 #ifndef WX_PRECOMP
     #include "wx/hash.h"
     #include "wx/app.h"
+    #include "wx/window.h"
+    #include "wx/timer.h"
+    #include "wx/module.h"
 #endif
 
-#include "wx/window.h"
 #include "wx/tooltip.h"
-#include "wx/timer.h"
-#include "wx/module.h"
 #include "wx/unix/private.h"
 #include "wx/x11/private.h"
 #include "X11/Xlib.h"
 #include <sys/time.h>
 #include <unistd.h>
 
+#ifdef HAVE_SYS_SELECT_H
+#   include <sys/select.h>
+#endif
+
 #if wxUSE_SOCKETS
 // ----------------------------------------------------------------------------
 // wxSocketTable
@@ -430,6 +434,9 @@ bool wxEventLoop::Dispatch()
 {
     XEvent event;
 
+    // Start off by checking if any of our child processes have finished.
+    wxCheckForFinishedChildren();
+
     // TODO allowing for threads, as per e.g. wxMSW
 
     // This now waits until either an X event is received,