[lto][patch] Patch to close unneeded fd's in lto-wrapper

Diego Novillo dnovillo@google.com
Mon Mar 16 17:07:00 GMT 2009


On Mon, Mar 16, 2009 at 12:57, Simon Baldwin <simonb@google.com> wrote:

>        * lto-wrapper.c (close_unneeded_fds): New function, close as many
>        file descriptors as possible.
>        (main): Call it.

OK with

> +    if (getrlimit(RLIMIT_NOFILE, &lim) == 0
> +       && lim.rlim_cur != RLIM_INFINITY && lim.rlim_cur < INT_MAX)

Line up predicates vertically.
Space before '(' in call to getrlimit.

> +      if (fd != fileno (stdin)
> +          && fd != fileno (stdout) && fd != fileno (stderr))

Line up predicates veritcally.


Diego.



More information about the Gcc-patches mailing list