From 6aa6a7e5d278f0b34489a85f6041cff6fc2c31f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20O=C5=BCarowski?= <piotr@debian.org> Date: Thu, 5 Aug 2010 20:15:55 -0400 Subject: [PATCH] pycompile: do not hang if interpreters are not started in the same order as they're used closes LP: #613675 --- debian/changelog | 7 +++++++ pycompile | 3 ++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index 543a5d2..c6f5730 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +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 diff --git a/pycompile b/pycompile index f70aa28..7975556 100755 --- a/pycompile +++ b/pycompile @@ -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: -- GitLab