[pypy-svn] r75197 - pypy/trunk/dotviewer

afa at codespeak.net afa at codespeak.net
Tue Jun 8 16:32:24 CEST 2010


Author: afa
Date: Tue Jun  8 16:32:22 2010
New Revision: 75197

Modified:
   pypy/trunk/dotviewer/graphparse.py
Log:
Don't close_fds on Windows, it does not work anyway.


Modified: pypy/trunk/dotviewer/graphparse.py
==============================================================================
--- pypy/trunk/dotviewer/graphparse.py	(original)
+++ pypy/trunk/dotviewer/graphparse.py	Tue Jun  8 16:32:22 2010
@@ -47,7 +47,8 @@
         else:
             cmdline = 'neato -Tplain'
         #print >> sys.stderr, '* running:', cmdline
-        p = subprocess.Popen(cmdline, shell=True, close_fds=True,
+        close_fds = sys.platform != 'win32'
+        p = subprocess.Popen(cmdline, shell=True, close_fds=close_fds,
                              stdin=subprocess.PIPE, stdout=subprocess.PIPE)
         (child_in, child_out) = (p.stdin, p.stdout)
         try:



More information about the Pypy-commit mailing list