]> git.saurik.com Git - wxWidgets.git/blobdiff - src/unix/utilsunx.cpp
Updated to Scintilla from 1.45 to 1.47
[wxWidgets.git] / src / unix / utilsunx.cpp
index 53f09c4b840067d23b0e2d2f50cf436925d8eaab..4cb88a61b97e38ddf0094f5c68a269caf4567468 100644 (file)
@@ -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)
     //
     // 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") );
 
     {
         wxLogSysError( _("Fork failed") );