public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
From: Samuel Thibault <samuel.thibault@ens-lyon.org>
To: libc-alpha@sourceware.org
Cc: Samuel Thibault <samuel.thibault@ens-lyon.org>, commit-hurd@gnu.org
Subject: [hurd,commited 4/5] hurd S_msg_report_wait: Fix detecting fd ports
Date: Mon, 23 Nov 2020 01:35:53 +0100	[thread overview]
Message-ID: <20201123003554.1513184-5-samuel.thibault@ens-lyon.org> (raw)
In-Reply-To: <20201123003554.1513184-1-samuel.thibault@ens-lyon.org>

_hurd_init_dtable stays set to non-NULL, so we have to run through both
_hurd_init_dtable and _hurd_dtable.
---
 hurd/report-wait.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hurd/report-wait.c b/hurd/report-wait.c
index 752d0cc1c4..eba43c97a6 100644
--- a/hurd/report-wait.c
+++ b/hurd/report-wait.c
@@ -77,7 +77,7 @@ describe_port (string_t description, mach_port_t port)
 	if (port == _hurd_init_dtable[i])
 	  return describe_number (description, "fd#", i);
     }
-  else if (_hurd_dtable)
+  if (_hurd_dtable)
     {
       for (i = 0; i < _hurd_dtablesize; ++i)
 	if (_hurd_dtable[i] == NULL)
-- 
2.29.2


  parent reply	other threads:[~2020-11-23  0:36 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-23  0:35 [hurd,commited 0/5] gcc-11-related fixes Samuel Thibault
2020-11-23  0:35 ` [hurd,commited 1/5] hurd: Fix _S_msg_get/set_env_variable prototype Samuel Thibault
2020-11-23  0:35 ` [hurd,commited 2/5] hurd: Fix strcpy calls Samuel Thibault
2020-11-23  0:35 ` [hurd,commited 3/5] hurd S_msg_report_wait: Fix reporting ports Samuel Thibault
2020-11-23  0:35 ` Samuel Thibault [this message]
2020-11-23  0:35 ` [hurd,commited 5/5] hurd report-wait: Fix stpcpy usage Samuel Thibault

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=20201123003554.1513184-5-samuel.thibault@ens-lyon.org \
    --to=samuel.thibault@ens-lyon.org \
    --cc=commit-hurd@gnu.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).