}
// 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") );
}
}
-#ifndef __VMS
+#if !defined(__VMS) && !defined(__EMX__)
if ( flags & wxEXEC_MAKE_GROUP_LEADER )
{
// Set process group to child process' pid. Then killing -pid