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:
@@ -3025,9 +3025,6 @@ if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
|
|||||||
fi
|
fi
|
||||||
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
|
dnl check for the function for temp files creation
|
||||||
AC_CHECK_FUNCS(mkstemp mktemp, break)
|
AC_CHECK_FUNCS(mkstemp mktemp, break)
|
||||||
|
|
||||||
|
@@ -1046,9 +1046,6 @@
|
|||||||
/* Define if you have the usleep function. */
|
/* Define if you have the usleep function. */
|
||||||
#undef HAVE_USLEEP
|
#undef HAVE_USLEEP
|
||||||
|
|
||||||
/* Define if you have the vfork function. */
|
|
||||||
#undef HAVE_VFORK
|
|
||||||
|
|
||||||
/* Define if you have the <X11/XKBlib.h> header file. */
|
/* Define if you have the <X11/XKBlib.h> header file. */
|
||||||
#undef HAVE_X11_XKBLIB_H
|
#undef HAVE_X11_XKBLIB_H
|
||||||
|
|
||||||
|
@@ -1073,9 +1073,6 @@
|
|||||||
/* Define if you have the usleep function. */
|
/* Define if you have the usleep function. */
|
||||||
#define HAVE_USLEEP 1
|
#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. */
|
/* Define if you have the <X11/XKBlib.h> header file. */
|
||||||
#undef HAVE_X11_XKBLIB_H
|
#undef HAVE_X11_XKBLIB_H
|
||||||
|
|
||||||
|
@@ -563,12 +563,10 @@ long wxExecute(wxChar **argv,
|
|||||||
}
|
}
|
||||||
|
|
||||||
// fork the process
|
// fork the process
|
||||||
#ifdef HAVE_VFORK
|
//
|
||||||
pid_t pid = vfork();
|
// NB: do *not* use vfork() here, it completely breaks this code for some
|
||||||
#else
|
// reason under Solaris (and maybe others, although not under Linux)
|
||||||
pid_t pid = fork();
|
pid_t pid = fork();
|
||||||
#endif
|
|
||||||
|
|
||||||
if ( pid == -1 ) // error?
|
if ( pid == -1 ) // error?
|
||||||
{
|
{
|
||||||
wxLogSysError( _("Fork failed") );
|
wxLogSysError( _("Fork failed") );
|
||||||
|
Reference in New Issue
Block a user