PCH merge: bootstrap failure, gengtype consumes all file descriptors

Geoff Keating geoffk@geoffk.org
Mon Jun 10 20:06:00 GMT 2002


> Date: Mon, 10 Jun 2002 22:40:55 -0400 (EDT)
> From: "Kaveh R. Ghazi" <ghazi@caip.rutgers.edu>

> IMHO its system programming 101 that says don't open tons of FDs
> simultaneously.  Instead do your processing one FD (file) at a time.

All that work to save a few small kernel data structures...

> Can gengtype.c be changed so that we operate on only one of its output
> files at a time so as not to consume so many file descriptors?

It's possible but not easy.  Probably the easiest thing would be to
close and re-open the temporary files during processing.  Of course,
that requires knowing their names...

Care to suggest a patch?

-- 
- Geoffrey Keating <geoffk@geoffk.org> <geoffk@redhat.com>



More information about the Gcc mailing list