This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Problems with the cpp change after 2000-06-18


On Mon, Jul 03, 2000 at 10:54:38AM -0700, Zack Weinberg wrote:
> > > Try using ulimit -n.
> > > 
> > 
> > I have to build kernel as root. I am not sure "ulimit -n" will help.
> 
> Funny, I've never had any trouble building kernels as an unprivileged
> user.
> 
> In any case, resource limits apply to uid 0 processes just as they
> would any other process; sure, they can call setrlimit() and raise
> them, but cpp doesn't do that.

"ulimit -n" seems to work for root. The problem is "ulimit -n" may
not work for me in my shell since other processes have legitimate
reasons to open many files. I tried "ulimit -n 16" which failed. I
am running ""ulimit -n 32" now. It will take at least an hour to know
for sure. Also I don't know how portable setrlimit() will be. Is that
in libiberty? A counter in cpp should work ok.


H.J.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]