]> git.saurik.com Git - wxWidgets.git/blobdiff - src/unix/utilsunx.cpp
Rewrote wxToolBar another time.
[wxWidgets.git] / src / unix / utilsunx.cpp
index 83e04373a4b4b4c65d8318907cab548e88be6e00..8d1c888fc75aa70a88cf87a9f9543d8f5782c9a2 100644 (file)
@@ -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