OLD | NEW |
(Empty) | |
| 1 ? dist/src/Mac/IDE scripts/Hold option to open a script |
| 2 ? dist/src/Mac/IDE scripts/Insert file name |
| 3 ? dist/src/Mac/IDE scripts/Insert folder name |
| 4 ? dist/src/Mac/IDE scripts/Search Python Documentation |
| 5 ? dist/src/Mac/IDE scripts/Hack/Remove .pyc files |
| 6 ? dist/src/Mac/IDE scripts/Hack/Toolbox Assistant |
| 7 Index: dist/src/Modules/posixmodule.c |
| 8 =================================================================== |
| 9 RCS file: /cvsroot/python/python/dist/src/Modules/posixmodule.c,v |
| 10 retrieving revision 2.213 |
| 11 diff -c -c -r2.213 posixmodule.c |
| 12 *** dist/src/Modules/posixmodule.c 2001/12/03 20:41:00 2.213 |
| 13 --- dist/src/Modules/posixmodule.c 2001/12/05 00:52:58 |
| 14 *************** |
| 15 *** 1668,1674 **** |
| 16 #ifdef HAVE_SPAWNV |
| 17 static char posix_spawnv__doc__[] = |
| 18 "spawnv(mode, path, args)\n\ |
| 19 ! Execute an executable path with arguments, replacing current process.\n\ |
| 20 \n\ |
| 21 mode: mode of process creation\n\ |
| 22 path: path of executable file\n\ |
| 23 --- 1668,1674 ---- |
| 24 #ifdef HAVE_SPAWNV |
| 25 static char posix_spawnv__doc__[] = |
| 26 "spawnv(mode, path, args)\n\ |
| 27 ! Execute the program 'path' in a new process.\n\ |
| 28 \n\ |
| 29 mode: mode of process creation\n\ |
| 30 path: path of executable file\n\ |
| 31 *************** |
| 32 *** 1717,1724 **** |
| 33 |
| 34 if (mode == _OLD_P_OVERLAY) |
| 35 mode = _P_OVERLAY; |
| 36 spawnval = _spawnv(mode, path, argvlist); |
| 37 ! |
| 38 PyMem_DEL(argvlist); |
| 39 |
| 40 if (spawnval == -1) |
| 41 --- 1717,1727 ---- |
| 42 |
| 43 if (mode == _OLD_P_OVERLAY) |
| 44 mode = _P_OVERLAY; |
| 45 + |
| 46 + Py_BEGIN_ALLOW_THREADS |
| 47 spawnval = _spawnv(mode, path, argvlist); |
| 48 ! Py_END_ALLOW_THREADS |
| 49 ! |
| 50 PyMem_DEL(argvlist); |
| 51 |
| 52 if (spawnval == -1) |
| 53 *************** |
| 54 *** 1734,1740 **** |
| 55 |
| 56 static char posix_spawnve__doc__[] = |
| 57 "spawnve(mode, path, args, env)\n\ |
| 58 ! Execute a path with arguments and environment, replacing current process.\n\ |
| 59 \n\ |
| 60 mode: mode of process creation\n\ |
| 61 path: path of executable file\n\ |
| 62 --- 1737,1743 ---- |
| 63 |
| 64 static char posix_spawnve__doc__[] = |
| 65 "spawnve(mode, path, args, env)\n\ |
| 66 ! Execute the program 'path' in a new process.\n\ |
| 67 \n\ |
| 68 mode: mode of process creation\n\ |
| 69 path: path of executable file\n\ |
| 70 *************** |
| 71 *** 1830,1836 **** |
| 72 --- 1833,1843 ---- |
| 73 |
| 74 if (mode == _OLD_P_OVERLAY) |
| 75 mode = _P_OVERLAY; |
| 76 + |
| 77 + Py_BEGIN_ALLOW_THREADS |
| 78 spawnval = _spawnve(mode, path, argvlist, envlist); |
| 79 + Py_END_ALLOW_THREADS |
| 80 + |
| 81 if (spawnval == -1) |
| 82 (void) posix_error(); |
| 83 else |
OLD | NEW |