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:04:13 +01:00
commit 7b98d02302
6 changed files with 24 additions and 5 deletions

View file

@ -411,7 +411,7 @@ class _popen:
# Alias
__del__ = close
def popen(cmd, mode='r', bufsize=None):
def popen(cmd, mode='r', bufsize=-1):
""" Portable popen() interface.
"""