[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: sending ports in reply msg
From: |
Roland McGrath |
Subject: |
Re: sending ports in reply msg |
Date: |
Thu, 12 Jul 2001 20:01:13 -0400 (EDT) |
proc_getexecdata and proc_setexecdata both seem to be totally broken.
It seems like they have never actually been called.
proc_setexecdata never deallocates the old port rights.
proc_getexecdata never sets its *portspoly out parameter, so garbage goes
into the reply message.
I think the only correct thing for proc_getexecdata to do is add a user ref
to each port and then set *portspoly to MACH_MSG_TYPE_MOVE_SEND.