Message25643
The inheritance of std descriptors is inconsistent
between Unix and Windows implementations.
If one calls Popen with stdin = stdout = stderr = None,
the caller's std descriptors are inherited on *x, but
not on Windows, because of the following optimization
(from subprocess.py r1.20):
655 def _get_handles(self, stdin, stdout,
stderr):
656 """Construct and return tupel with
IO objects:
657 p2cread, p2cwrite, c2pread,
c2pwrite, errread, errwrite
658 """
659 if stdin is None and stdout is None
and stderr is None:
660 return (None, None, None, None,
None, None)
661
I suggest to just remove those lines 659 and 660. The
current workaround is to duplicate the handles by the
application and supply an own STARTUPINFO structure. |
|
Date |
User |
Action |
Args |
2007-08-23 14:32:38 | admin | link | issue1227748 messages |
2007-08-23 14:32:38 | admin | create | |
|