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
This commit is contained in:
Vadim Zeitlin
2002-04-01 21:31:27 +00:00
parent d6eacb2570
commit 836915e177

View 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
}