PyPy-Holstein: execute subprocess.Popen failure
Problem Description
The compiled PyPy interpreter is having problem executing subprocess.Popen()
. The function calls os.fork()
, then os.execvp()
in the child process. Though a second process is forked, the execution seems to halt and not making any progress after that (CPU usage become 0).
Following test exposes the problem:
def test_subproc():
import sys
import subprocess
target = sys.executable
proc = subprocess.Popen(['file', target],
stdout=subprocess.PIPE,
stderr=subprocess.STDOUT)
output = proc.communicate()[0]
print output
rc = proc.wait()
assert rc == 0