added wxEXEC_MAKE_GROUP_LEADER (patch 535422)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14819 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -650,6 +650,13 @@ long wxExecute(wxChar **argv,
|
||||
if ( fd != STDERR_FILENO )
|
||||
close(fd);
|
||||
}
|
||||
|
||||
if ( flags & wxEXEC_MAKE_GROUP_LEADER )
|
||||
{
|
||||
// Set process group to child process' pid. Then killing -pid
|
||||
// of the parent will kill the process and all of its children.
|
||||
setsid();
|
||||
}
|
||||
}
|
||||
|
||||
// redirect stdio, stdout and stderr
|
||||
|
Reference in New Issue
Block a user