From 836915e177aa750ca5c3bc19b4dbdedd36603e8d Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Mon, 1 Apr 2002 21:31:27 +0000 Subject: [PATCH] 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 --- src/msw/utilsexc.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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 } -- 2.50.0