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:
@@ -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") );
|
||||
|
Reference in New Issue
Block a user