bug-make
[Top][All Lists]
Advanced

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

Re: patch to support output synchronization under -j


From: Paul Smith
Subject: Re: patch to support output synchronization under -j
Date: Fri, 15 Apr 2011 12:21:18 -0400

On Fri, 2011-04-15 at 18:09 +0300, Eli Zaretskii wrote:
> > But yes, any feature
> > which consumes additional resources increases the risk of running out
> > of that resource. I don't know that recursion comes into it though,
> 
> Each sub-Make inherits all the file descriptors of all its parents,
> grandparents, etc.  If a sub-Make was launched when 4 other jobs were
> running in parallel, the sub-Make will inherit 8 file descriptors that
> it won't use.  The deeper the recursion, the more inherited
> descriptors.

We will just set them to be close-on-exec, except the dup'd versions for
stdout/stderr.  I'm pretty sure we already do that in some situations.
We really don't want them inherited by sub-makes and other jobs anyway:
that would be bad.  Some commands don't like it.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]