don't use vfork() in wxExecute()

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16880 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2002-08-30 21:38:12 +00:00
parent cf6e951cf2
commit ef5f8ab626
4 changed files with 3 additions and 14 deletions

View File

@ -3025,9 +3025,6 @@ if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
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)

View File

@ -1046,9 +1046,6 @@
/* 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

View File

@ -1073,9 +1073,6 @@
/* 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

View File

@ -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") );