On Thursday 29 April 2010 17:02:50 Joerg Sonnenberger wrote: > On Thu, Apr 29, 2010 at 11:12:21PM +0000, Simon J. Gerraty wrote: > > Module Name: src > > Committed By: sjg > > Date: Thu Apr 29 23:12:21 UTC 2010 > > > > Modified Files: > > src/usr.bin/make: main.c parse.c > > > > Log Message: > > fflush stdout, before writing to stderr. > > In which situation does it actually help? I think this is supposed to be > the default behavior for stderr after all.
In a shell that allows you to say: make target >& logfile & In this case, stdout defaults to fully buffered mode instead of line buffered mode and with stderr being unbuffered, the fflush is needed to make sure that anything written to standard out appears in the output before the stuff written to stderr. --Phil -- Phil Nelson (phil at cs.wwu.edu) http://www.cs.wwu.edu/nelson NetBSD: http://www.NetBSD.org Coda: http://www.coda.cs.cmu.edu