X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ef5f8ab62657cd12c9c4be5e24dd45f3cd464ab9..42ba812b705cec0ebef0fb65bb72d27a1378b316:/src/unix/utilsunx.cpp diff --git a/src/unix/utilsunx.cpp b/src/unix/utilsunx.cpp index 53f09c4b84..4cb88a61b9 100644 --- a/src/unix/utilsunx.cpp +++ b/src/unix/utilsunx.cpp @@ -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") );