[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
mach_host_self() doesn't acquire new port name?!
From: |
Marcus Brinkmann |
Subject: |
mach_host_self() doesn't acquire new port name?! |
Date: |
Sun, 6 May 2001 18:19:22 +0200 |
User-agent: |
Mutt/1.3.15i |
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 brinkmd@debian.org
Marcus Brinkmann GNU http://www.gnu.org marcus@gnu.org
Marcus.Brinkmann@ruhr-uni-bochum.de
http://www.marcus-brinkmann.de
- mach_host_self() doesn't acquire new port name?!,
Marcus Brinkmann <=
- Re: mach_host_self() doesn't acquire new port name?!, Roland McGrath, 2001/05/06
- Re: mach_host_self() doesn't acquire new port name?!, Marcus Brinkmann, 2001/05/06
- Re: mach_host_self() doesn't acquire new port name?!, Roland McGrath, 2001/05/06
- Re: mach_host_self() doesn't acquire new port name?!, Marcus Brinkmann, 2001/05/06
- Re: mach_host_self() doesn't acquire new port name?!, Roland McGrath, 2001/05/06
- Re: mach_host_self() doesn't acquire new port name?!, Marcus Brinkmann, 2001/05/07
- Re: mach_host_self() doesn't acquire new port name?!, Thomas Bushnell, BSG, 2001/05/07
- Re: mach_host_self() doesn't acquire new port name?!, Thomas Bushnell, BSG, 2001/05/07
- Re: mach_host_self() doesn't acquire new port name?!, Marcus Brinkmann, 2001/05/08
- Re: mach_host_self() doesn't acquire new port name?!, Thomas Bushnell, BSG, 2001/05/08