Fixes issue1336 - a race condition could occur when forking if the gc
commit2e8488792024999a0129b4045c60e7bbb15c33b4
authorgregory.p.smith <gregory.p.smith@6015fed2-1504-0410-9fe1-9d1591cc4771>
Sat, 19 Jan 2008 20:57:59 +0000 (19 20:57 +0000)
committergregory.p.smith <gregory.p.smith@6015fed2-1504-0410-9fe1-9d1591cc4771>
Sat, 19 Jan 2008 20:57:59 +0000 (19 20:57 +0000)
tree41acdf8928a8511396ebb295bb4d3c44bcdb46c8
parentec7db1e46fe8045b40406a4a481fd8fafa60d68a
Fixes issue1336 - a race condition could occur when forking if the gc
kicked in during the critical section.  solution: disable gc during
that section.  Patch contributed by jpa and updated by me to cover the
race condition still existing what therve from twistedmatrix pointed
out (already seen and fixed in twisted's own subprocess code).

git-svn-id: http://svn.python.org/projects/python/trunk@60104 6015fed2-1504-0410-9fe1-9d1591cc4771
Lib/subprocess.py