From patchwork Mon Nov 23 00:35:53 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Samuel Thibault X-Patchwork-Id: 41147 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 3A081385782F; Mon, 23 Nov 2020 00:36:06 +0000 (GMT) X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from hera.aquilenet.fr (hera.aquilenet.fr [IPv6:2a0c:e300::1]) by sourceware.org (Postfix) with ESMTPS id 1631A3858006 for ; Mon, 23 Nov 2020 00:36:01 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 1631A3858006 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=ens-lyon.org Authentication-Results: sourceware.org; spf=fail smtp.mailfrom=samuel.thibault@ens-lyon.org Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id 1D4AC119F; Mon, 23 Nov 2020 01:36:00 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at aquilenet.fr Received: from hera.aquilenet.fr ([127.0.0.1]) by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id aMkI3JGdQYEc; Mon, 23 Nov 2020 01:35:59 +0100 (CET) Received: from function.youpi.perso.aquilenet.fr (lfbn-bor-1-56-204.w90-50.abo.wanadoo.fr [90.50.148.204]) by hera.aquilenet.fr (Postfix) with ESMTPSA id 1F0D711A1; Mon, 23 Nov 2020 01:35:57 +0100 (CET) Received: from samy by function.youpi.perso.aquilenet.fr with local (Exim 4.94) (envelope-from ) id 1kgzpj-006LfA-Dp; Mon, 23 Nov 2020 01:35:55 +0100 From: Samuel Thibault To: libc-alpha@sourceware.org Subject: [hurd,commited 4/5] hurd S_msg_report_wait: Fix detecting fd ports Date: Mon, 23 Nov 2020 01:35:53 +0100 Message-Id: <20201123003554.1513184-5-samuel.thibault@ens-lyon.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201123003554.1513184-1-samuel.thibault@ens-lyon.org> References: <20201123003554.1513184-1-samuel.thibault@ens-lyon.org> MIME-Version: 1.0 X-Spam-Status: No, score=-11.5 required=5.0 tests=BAYES_00, GIT_PATCH_0, JMQ_SPF_NEUTRAL, KAM_DMARC_STATUS, SPF_HELO_PASS, SPF_NEUTRAL, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: commit-hurd@gnu.org Errors-To: libc-alpha-bounces@sourceware.org Sender: "Libc-alpha" _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)