public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
From: Andreas Schwab <schwab@linux-m68k.org>
To: Adhemerval Zanella via Libc-alpha <libc-alpha@sourceware.org>
Subject: Re: [PATCH v2] linux: Fix __closefrom_fallback iterates until max int (BZ#28993)
Date: Thu, 24 Mar 2022 12:19:46 +0100	[thread overview]
Message-ID: <87v8w3wqb1.fsf@igel.home> (raw)
In-Reply-To: <20220324110907.169470-1-adhemerval.zanella@linaro.org> (Adhemerval Zanella via Libc-alpha's message of "Thu, 24 Mar 2022 08:09:07 -0300")

On Mär 24 2022, Adhemerval Zanella via Libc-alpha wrote:

>    if (dirfd == -1)
>      {
>        /* The closefrom should work even when process can't open new files.  */
> -      if (errno == ENOENT || !dirfd_fallback)
> -        goto err;
> +      if (errno != EMFILE || !dirfd_fallback)

There is also ENFILE.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."

  reply	other threads:[~2022-03-24 11:19 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-03-24 11:09 Adhemerval Zanella
2022-03-24 11:19 ` Andreas Schwab [this message]
2022-03-24 11:25 ` Florian Weimer
2022-03-24 11:29   ` Adhemerval Zanella

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87v8w3wqb1.fsf@igel.home \
    --to=schwab@linux-m68k.org \
    --cc=libc-alpha@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).