mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
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:
parent
5e98141f9f
commit
877766dee8
6 changed files with 23 additions and 5 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue