Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: src/usr.bin/make



Module Name:    src
Committed By:   dsl
Date:           Wed Oct 11 07:01:45 UTC 2006

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

Log Message:
There is no need to resize the pollfd array, it can only ever have 2+maxJobs
entries, so allocate at startup.
Use an 'int jobPipe[2]' within the job structure, and create pipes directly
into it.  Common up the code that creates all the pipes - making them all
non-block on the read side in the process.
Call Job_CatchChildren() directly from Job_CatchOutput() so that it only
gets called when a child actually exits.
NB: Something causes a 'pregnant pause' if (for example) you call 'nbmake obj'
in src/tools.  Introduced between netbsd 3 and 4.


To generate a diff of this commit:
cvs rdiff -r1.121 -r1.122 src/usr.bin/make/job.c
cvs rdiff -r1.32 -r1.33 src/usr.bin/make/job.h
cvs rdiff -r1.131 -r1.132 src/usr.bin/make/main.c
cvs rdiff -r1.64 -r1.65 src/usr.bin/make/make.c

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




Home | Main Index | Thread Index | Old Index