]> granicus.if.org Git - python/commit
Fixes issue1336 - a race condition could occur when forking if the gc
authorGregory P. Smith <greg@mad-scientist.com>
Sat, 19 Jan 2008 20:57:59 +0000 (20:57 +0000)
committerGregory P. Smith <greg@mad-scientist.com>
Sat, 19 Jan 2008 20:57:59 +0000 (20:57 +0000)
commit87d49792b5c7379cab7b1182c0eff34d8b6ab9f7
treedd3c64a5073e4fd79e8a2348b2246527ab276e8a
parentf558d2e5f560cc2f3a5e9fed86031f7b6ea64ab5
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).
Lib/subprocess.py