Hi,
I don't understand why mach_host_self() doesn't acquire a new port name and
leaks a port if not deallocated. In other words, I expected the following to
leak ports, but it doesn't:
main ()
{
while (1)
mach_host_self(); /* Returns 23 on each and every call. */
}
mach_task_self is cached in libc/mach/mach_init.c, I understand that. We
don't do a similar caching for mach_host_self, right? I couldn't find one at
least. Following the code in gnumach/kern/ipc_host.c and
gnumach/ipc/{ipc_port.c (ipc_port_copyout_send),
ipc_object.c (ipc_object_copyout), ipc_entry.c (ipc_entry_get)}, it seems it
should acquire a new entry in the name space for the send right.
Where is my mistake?
Thanks,
Marcus
--
`Rhubarb is no Egyptian god.' Debian http://www.debian.org [EMAIL PROTECTED]
Marcus Brinkmann GNU http://www.gnu.org [EMAIL PROTECTED]
[EMAIL PROTECTED]
http://www.marcus-brinkmann.de
_______________________________________________
Bug-hurd mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-hurd