]> git.saurik.com Git - wxWidgets.git/commitdiff
sleep while waiting for the spawned process to terminate so that we don't eat 100...
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 1 Apr 2002 21:31:27 +0000 (21:31 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 1 Apr 2002 21:31:27 +0000 (21:31 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14891 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

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
     }