X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e1082c9fa8763696ea87c75b1435db9d3a2e1d7c..a5e84126fcb673217660170ab871738f21972b49:/src/unix/utilsunx.cpp?ds=sidebyside diff --git a/src/unix/utilsunx.cpp b/src/unix/utilsunx.cpp index 8d1c888fc7..b372b21c34 100644 --- a/src/unix/utilsunx.cpp +++ b/src/unix/utilsunx.cpp @@ -155,7 +155,7 @@ int wxKill(long pid, wxSignal sig, wxKillError *rc) int err = kill((pid_t)pid, (int)sig); if ( rc ) { - switch ( err ) + switch ( errno ) { case 0: *rc = wxKILL_OK; @@ -651,12 +651,14 @@ long wxExecute(wxChar **argv, close(fd); } - if ( flags & wxEXEC_MAKE_GROUP_LEADER ) +#ifndef __VMS + 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(); } +#endif } // redirect stdio, stdout and stderr