[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[hurd,commited 4/5] hurd S_msg_report_wait: Fix detecting fd ports
From: |
Samuel Thibault |
Subject: |
[hurd,commited 4/5] hurd S_msg_report_wait: Fix detecting fd ports |
Date: |
Mon, 23 Nov 2020 01:35:53 +0100 |
_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
- [hurd,commited 0/5] gcc-11-related fixes, Samuel Thibault, 2020/11/22
- [hurd,commited 3/5] hurd S_msg_report_wait: Fix reporting ports, Samuel Thibault, 2020/11/22
- [hurd,commited 4/5] hurd S_msg_report_wait: Fix detecting fd ports,
Samuel Thibault <=
- [hurd,commited 2/5] hurd: Fix strcpy calls, Samuel Thibault, 2020/11/22
- [hurd,commited 1/5] hurd: Fix _S_msg_get/set_env_variable prototype, Samuel Thibault, 2020/11/22
- [hurd,commited 5/5] hurd report-wait: Fix stpcpy usage, Samuel Thibault, 2020/11/22