> While I'm not that proficient in these issues,
Nor am i.
But I am.
> /* Return the io server port for file descriptor FD. This adds a
> Mach user reference to the returned port. On error, sets
> `errno' and returns MACH_PORT_NULL. */
Thanks, that looks quite promising. Is a "Mach user reference" the
sort of thing that mach_port_deallocate removes?
Yep (and mach_port_get_refs creates IIRC), it is a just port.
Is the diagnostic appropriate?
Not mentioning the dtable would be better, since it is a internal
structure in glibc.
I haven't had time (or a machine) to test the patch, but I don't see
any real reasons why it shouldn't.