Added support for wxEXEC_MAKE_GROUP_LEADER to wxExecute().

Map it to the native CREATE_NEW_PROCESS_GROUP flag as it's broadly similar to
Unix semantics.

Closes #13676.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70051 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2011-12-19 12:54:48 +00:00
parent 1c959a62ce
commit ee4d438064
4 changed files with 19 additions and 2 deletions

View File

@@ -794,6 +794,10 @@ long wxExecute(const wxString& cmd, int flags, wxProcess *handler,
DWORD dwFlags = CREATE_SUSPENDED;
#ifndef __WXWINCE__
if ( (flags & wxEXEC_MAKE_GROUP_LEADER) &&
(wxGetOsVersion() == wxOS_WINDOWS_NT) )
dwFlags |= CREATE_NEW_PROCESS_GROUP;
dwFlags |= CREATE_DEFAULT_ERROR_MODE ;
#else
// we are assuming commands without spaces for now