Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(583)

Side by Side Diff: scons-2.0.1/os_spawnv_fix.diff

Issue 6711079: Added an unmodified copy of SCons to third_party. (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/third_party/
Patch Set: '' Created 9 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « scons-2.0.1/engine/SCons/exitfuncs.py ('k') | scons-2.0.1/scons.1 » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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
OLDNEW
« no previous file with comments | « scons-2.0.1/engine/SCons/exitfuncs.py ('k') | scons-2.0.1/scons.1 » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698