summaryrefslogtreecommitdiff
path: root/sys/dev/microcode
diff options
context:
space:
mode:
authordsl <dsl@NetBSD.org>2006-10-11 07:01:44 +0000
committerdsl <dsl@NetBSD.org>2006-10-11 07:01:44 +0000
commit505a3bb2b7066adce15773c4b99671ce5fffa7c0 (patch)
tree5c0421072a448151ffa5751ec6e97cb0a8ff16ff /sys/dev/microcode
parente160c7cdec66c5d034a90a8408d87d326cc860d8 (diff)
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.
Diffstat (limited to 'sys/dev/microcode')
0 files changed, 0 insertions, 0 deletions