]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/utilsexc.cpp
(hopefully) workaround for a carbon bug not always setting the modifiers event record...
[wxWidgets.git] / src / msw / utilsexc.cpp
index db09033338e6bc8ac10f3077eb37146cf0741e49..21b74439c33f7289e21634a72d3428fe4a1c592e 100644 (file)
@@ -735,7 +735,11 @@ long wxExecute(const wxString& cmd, int flags, wxProcess *handler)
 #endif // wxUSE_GUI
 
     while ( data->state )
+    {
+        // don't take 100% of the CPU
+        ::Sleep(500);
         wxYield();
+    }
 
 #if wxUSE_GUI
     }