Skip to content
Snippets Groups Projects
Commit 6aa6a7e5 authored by Piotr Ożarowski's avatar Piotr Ożarowski
Browse files

pycompile: do not hang if interpreters are not started in the same order as they're used

closes LP: #613675
parent 9142513d
No related branches found
No related tags found
No related merge requests found
python-defaults (2.6.5-12) unstable; urgency=low
* pycompile: do not hang if interpreters are not started in the same order
as they're used (LP: #613675)
-- Piotr Ożarowski <piotr@debian.org> Thu, 05 Aug 2010 19:15:52 -0400
python-defaults (2.6.5-11) unstable; urgency=medium
* Add README.PyDist to python-doc package
......
......@@ -168,7 +168,8 @@ def py_compile(version, workers):
if not isinstance(version, basestring):
version = vrepr(version)
cmd = "python%s -m py_compile -" % version
process = Popen(cmd, bufsize=1, shell=True, stdin=PIPE)
process = Popen(cmd, bufsize=1, shell=True,
stdin=PIPE, close_fds=True)
workers[version] = process # keep the reference for .communicate()
stdin = process.stdin
while True:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment