Stdio buffering question
Jim Shankland
jas at rain.rtech.UUCP
Tue Jun 14 03:39:13 AEST 1988
In article <4999 at super.upenn.edu> david at linc.cis.upenn.edu.UUCP (David Feldman) writes:
>When piping, stderr gets buffered so that it may be separated from stdout.
>Stdout goes through the pipe, and when it is closed, the stderr buffer gets
>flushed through the pipe. That is assuming you have redirected stderr through
>the pipe also. This is a documented feature, and I believe it is a csh thing.
>I can't remember off hand. I don't think fflush() will help, especially
>if it is done in csh. One way csh could implement this feature is to
>attach stderr to a file and then throw the file down the pipe when stdout
>closes. Any csh hackers know the details on this thing? I am guessin'.
I'll say.
Jim Shankland
..!ihnp4!cpsc6a!\
sun!rtech!jas
..!ucbvax!mtxinu!/
"The road to hell ... is where the heart is"
More information about the Comp.unix.wizards
mailing list