X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6f3d3c68fd3eb2eb36501628e0e23fbafbb1132e..11a2ce5ad289cb21b35cc21131b46f75dd4af060:/src/unix/utilsunx.cpp diff --git a/src/unix/utilsunx.cpp b/src/unix/utilsunx.cpp index 0b60c5214c..53f09c4b84 100644 --- a/src/unix/utilsunx.cpp +++ b/src/unix/utilsunx.cpp @@ -563,12 +563,10 @@ long wxExecute(wxChar **argv, } // fork the process -#ifdef HAVE_VFORK - pid_t pid = vfork(); -#else + // + // NB: do *not* use vfork() here, it completely breaks this code for some + // reason under Solaris (and maybe others, although not under Linux) pid_t pid = fork(); -#endif - if ( pid == -1 ) // error? { wxLogSysError( _("Fork failed") ); @@ -605,7 +603,7 @@ long wxExecute(wxChar **argv, } } -#ifndef __VMS +#if !defined(__VMS) && !defined(__EMX__) if ( flags & wxEXEC_MAKE_GROUP_LEADER ) { // Set process group to child process' pid. Then killing -pid