Committing in .
Updates for OpenVMS in utilsunx.cpp : OpenVMS does not have fork. So I use vfork there although the source warns me that it may be broken on some systems. Modified Files: wxWindows/setup.h_vms wxWindows/src/unix/utilsunx.cpp ---------------------------------------------------------------------- git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@17011 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -566,8 +566,14 @@ long wxExecute(wxChar **argv,
|
||||
//
|
||||
// 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();
|
||||
if ( pid == -1 ) // error?
|
||||
// But on OpenVMS we do not have fork so we have to use vfork and
|
||||
// cross our fingers that it works.
|
||||
#ifdef __VMS
|
||||
pid_t pid = vfork();
|
||||
#else
|
||||
pid_t pid = fork();
|
||||
#endif
|
||||
if ( pid == -1 ) // error?
|
||||
{
|
||||
wxLogSysError( _("Fork failed") );
|
||||
|
||||
|
Reference in New Issue
Block a user