Subject: CVS commit: src/usr.bin/make
To: None <source-changes@NetBSD.org>
From: David Laight <dsl@netbsd.org>
List: source-changes
Date: 01/21/2006 19:18:37
Module Name:	src
Committed By:	dsl
Date:		Sat Jan 21 19:18:37 UTC 2006

Modified Files:
	src/usr.bin/make: job.c

Log Message:
Check the 'job_pipe' for the error token 'E' before every job, including
the first one for each make.  This significantly speeds up the detection
of errors in other branches of the make (ie those running in a different
make process).  The cost of reading and writing a byte from the pipe
should be insignificant.
Defer replacing job tokens until we've decided there is an error.
If we detect an error in another branch of the make, then call Fatal(),
setting 'aborting' and failing to return a token leads to infinite loops.
Now parallel makes actually stop with the failing command on the screen.


To generate a diff of this commit:
cvs rdiff -r1.101 -r1.102 src/usr.bin/make/job.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.