Author: Armin Rigo <[email protected]>
Branch: stmgc-c7
Changeset: r76012:80f3a98777c0
Date: 2015-02-20 12:54 +0100
http://bitbucket.org/pypy/pypy/changeset/80f3a98777c0/
Log: A quick way to avoid the many forks (thanks fijal)
diff --git a/rpython/tool/runsubprocess.py b/rpython/tool/runsubprocess.py
--- a/rpython/tool/runsubprocess.py
+++ b/rpython/tool/runsubprocess.py
@@ -65,7 +65,9 @@
def spawn_subprocess():
global _child
- _child = Popen([sys.executable, _source], bufsize=0,
+ # For STM, it doesn't make sense to run another STM subprocess.
+ # Better just start cpython.
+ _child = Popen(['/usr/bin/python', _source], bufsize=0,
stdin=PIPE, stdout=PIPE, close_fds=True)
spawn_subprocess()
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit