imaplib: comment on use of unbuffered pipes

This commit is contained in:
Forest 2024-09-23 16:04:38 -07:00
parent 223c2faa78
commit e64546cbae

View file

@ -1703,7 +1703,7 @@ class IMAP4_stream(IMAP4):
self.sock = None
self.file = None
self.process = subprocess.Popen(self.command,
bufsize=0,
bufsize=0, # Unbuffered stdin/stdout, for select() compatibility
stdin=subprocess.PIPE, stdout=subprocess.PIPE,
shell=True, close_fds=True)
self.writefile = self.process.stdin