about summary refs log tree commit diff
path: root/hurd
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2020-11-23 00:25:26 +0000
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2020-11-23 00:25:26 +0000
commitdba88fb3ed3e70d2ad797f447a2a894b0891a5d7 (patch)
tree98b0b59387dd6ffbbe691284120ca3bd256f1230 /hurd
parentc57fe5462ba5eb7331a223bbb7abd8ae273747c1 (diff)
downloadglibc-dba88fb3ed3e70d2ad797f447a2a894b0891a5d7.tar.gz
glibc-dba88fb3ed3e70d2ad797f447a2a894b0891a5d7.tar.xz
glibc-dba88fb3ed3e70d2ad797f447a2a894b0891a5d7.zip
hurd S_msg_report_wait: Fix detecting fd ports
_hurd_init_dtable stays set to non-NULL, so we have to run through both
_hurd_init_dtable and _hurd_dtable.
Diffstat (limited to 'hurd')
-rw-r--r--hurd/report-wait.c2
1 files changed, 1 insertions, 1 deletions
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)