Issue #11459: A bufsize value of 0 in subprocess.Popen() really creates

unbuffered pipes, such that select() works properly on them.
This commit is contained in:
Antoine Pitrou 2011-03-19 17:00:37 +01:00
parent 5e98141f9f
commit 877766dee8
6 changed files with 23 additions and 5 deletions

View file

@ -653,8 +653,6 @@ class Popen(object):
if errread is not None:
errread = msvcrt.open_osfhandle(errread.Detach(), 0)
if bufsize == 0:
bufsize = 1 # Nearly unbuffered (XXX for now)
if p2cwrite is not None:
self.stdin = io.open(p2cwrite, 'wb', bufsize)
if self.universal_newlines: