[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Problem with line buffered IO when no tty
From: |
Andreas Schwab |
Subject: |
Re: Problem with line buffered IO when no tty |
Date: |
Thu, 07 Jul 2011 14:48:42 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) |
"Steven W. Orr" <steveo@syslang.net> writes:
> But, I actually do get line buffered IO.
No, you don't.
> I get the stdout stuff as it happens, and the stderr stuff when that
> happens.
Every process flushes its output when it exits.
> If you run this program locally, it does the same thing. BUT! if you
> run it remotely, the two channels all block up till program exit and
> it all comes out in one squirt.
There is nothing that flushes the output before the process exits.
(Nothing of this has anything to do with the shell.)
Andreas.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."