Working around buffering issues when writing to pipes

2008-04-22 Thread sven _
Keywords: subprocess stdout stderr unbuffered pty tty pexpect flush setvbuf I'm trying to find a solution to URL:http://bugs.python.org/issue1241. In short: unless specifically told not to, normal C stdio will use full output buffering when connected to a pipe. It will use default (typically

Re: Working around buffering issues when writing to pipes

2008-04-22 Thread Mark Wooding
sven _ [EMAIL PROTECTED] wrote: In short: unless specifically told not to, normal C stdio will use full output buffering when connected to a pipe. It will use default (typically unbuffered) output when connected to a tty/pty. Wrong. Standard output to a terminal is typically line-buffered.