Toplevel directory cleanup
[senf.git] / tools / scons-1.2.0 / os_spawnv_fix.diff
diff --git a/tools/scons-1.2.0/os_spawnv_fix.diff b/tools/scons-1.2.0/os_spawnv_fix.diff
new file mode 100644 (file)
index 0000000..926f896
--- /dev/null
@@ -0,0 +1,83 @@
+? dist/src/Mac/IDE scripts/Hold option to open a script\r
+? dist/src/Mac/IDE scripts/Insert file name\r
+? dist/src/Mac/IDE scripts/Insert folder name\r
+? dist/src/Mac/IDE scripts/Search Python Documentation\r
+? dist/src/Mac/IDE scripts/Hack/Remove .pyc files\r
+? dist/src/Mac/IDE scripts/Hack/Toolbox Assistant\r
+Index: dist/src/Modules/posixmodule.c\r
+===================================================================\r
+RCS file: /cvsroot/python/python/dist/src/Modules/posixmodule.c,v\r
+retrieving revision 2.213\r
+diff -c -c -r2.213 posixmodule.c\r
+*** dist/src/Modules/posixmodule.c     2001/12/03 20:41:00     2.213\r
+--- dist/src/Modules/posixmodule.c     2001/12/05 00:52:58\r
+***************\r
+*** 1668,1674 ****\r
+  #ifdef HAVE_SPAWNV\r
+  static char posix_spawnv__doc__[] =\r
+  "spawnv(mode, path, args)\n\\r
+! Execute an executable path with arguments, replacing current process.\n\\r
+  \n\\r
+       mode: mode of process creation\n\\r
+       path: path of executable file\n\\r
+--- 1668,1674 ----\r
+  #ifdef HAVE_SPAWNV\r
+  static char posix_spawnv__doc__[] =\r
+  "spawnv(mode, path, args)\n\\r
+! Execute the program 'path' in a new process.\n\\r
+  \n\\r
+       mode: mode of process creation\n\\r
+       path: path of executable file\n\\r
+***************\r
+*** 1717,1724 ****\r
+  \r
+       if (mode == _OLD_P_OVERLAY)\r
+               mode = _P_OVERLAY;\r
+       spawnval = _spawnv(mode, path, argvlist);\r
+! \r
+       PyMem_DEL(argvlist);\r
+  \r
+       if (spawnval == -1)\r
+--- 1717,1727 ----\r
+  \r
+       if (mode == _OLD_P_OVERLAY)\r
+               mode = _P_OVERLAY;\r
++      \r
++      Py_BEGIN_ALLOW_THREADS\r
+       spawnval = _spawnv(mode, path, argvlist);\r
+!      Py_END_ALLOW_THREADS\r
+!      \r
+       PyMem_DEL(argvlist);\r
+  \r
+       if (spawnval == -1)\r
+***************\r
+*** 1734,1740 ****\r
+  \r
+  static char posix_spawnve__doc__[] =\r
+  "spawnve(mode, path, args, env)\n\\r
+! Execute a path with arguments and environment, replacing current process.\n\\r
+  \n\\r
+       mode: mode of process creation\n\\r
+       path: path of executable file\n\\r
+--- 1737,1743 ----\r
+  \r
+  static char posix_spawnve__doc__[] =\r
+  "spawnve(mode, path, args, env)\n\\r
+! Execute the program 'path' in a new process.\n\\r
+  \n\\r
+       mode: mode of process creation\n\\r
+       path: path of executable file\n\\r
+***************\r
+*** 1830,1836 ****\r
+--- 1833,1843 ----\r
+  \r
+       if (mode == _OLD_P_OVERLAY)\r
+               mode = _P_OVERLAY;\r
++ \r
++      Py_BEGIN_ALLOW_THREADS\r
+       spawnval = _spawnve(mode, path, argvlist, envlist);\r
++      Py_END_ALLOW_THREADS\r
++ \r
+       if (spawnval == -1)\r
+               (void) posix_error();\r
+       else\r