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:
@@ -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
|
||||
|
Reference in New Issue
Block a user