git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16880
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
fi
fi
-dnl check for vfork() (even if it's the same as fork() in modern Unices)
-AC_CHECK_FUNCS(vfork)
-
dnl check for the function for temp files creation
AC_CHECK_FUNCS(mkstemp mktemp, break)
/* Define if you have the usleep function. */
#undef HAVE_USLEEP
-/* Define if you have the vfork function. */
-#undef HAVE_VFORK
-
/* Define if you have the <X11/XKBlib.h> header file. */
#undef HAVE_X11_XKBLIB_H
/* Define if you have the usleep function. */
#define HAVE_USLEEP 1
-/* Define if you have the vfork function. */
-#define HAVE_VFORK 1
-
/* Define if you have the <X11/XKBlib.h> header file. */
#undef HAVE_X11_XKBLIB_H
}
// 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") );