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.
This commit is contained in:
parent
c57fe5462b
commit
dba88fb3ed
|
@ -77,7 +77,7 @@ describe_port (string_t description, mach_port_t port)
|
||||||
if (port == _hurd_init_dtable[i])
|
if (port == _hurd_init_dtable[i])
|
||||||
return describe_number (description, "fd#", i);
|
return describe_number (description, "fd#", i);
|
||||||
}
|
}
|
||||||
else if (_hurd_dtable)
|
if (_hurd_dtable)
|
||||||
{
|
{
|
||||||
for (i = 0; i < _hurd_dtablesize; ++i)
|
for (i = 0; i < _hurd_dtablesize; ++i)
|
||||||
if (_hurd_dtable[i] == NULL)
|
if (_hurd_dtable[i] == NULL)
|
||||||
|
|
Loading…
Reference in a new issue