From: Vadim Zeitlin Date: Mon, 1 Apr 2002 21:31:27 +0000 (+0000) Subject: sleep while waiting for the spawned process to terminate so that we don't eat 100... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/836915e177aa750ca5c3bc19b4dbdedd36603e8d sleep while waiting for the spawned process to terminate so that we don't eat 100 of the CPU git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14891 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/msw/utilsexc.cpp b/src/msw/utilsexc.cpp index db09033338..21b74439c3 100644 --- a/src/msw/utilsexc.cpp +++ b/src/msw/utilsexc.cpp @@ -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 }