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:06:22 +01:00
commit 1679f4daa1
6 changed files with 24 additions and 5 deletions

View file

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