summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--proc/msg.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/proc/msg.c b/proc/msg.c
index b1abdaac..f7ba1b5e 100644
--- a/proc/msg.c
+++ b/proc/msg.c
@@ -47,12 +47,15 @@ error_t
S_proc_setmsgport (struct proc *p,
mach_port_t reply, mach_msg_type_name_t replytype,
mach_port_t msgport,
- mach_port_t *oldmsgport)
+ mach_port_t *oldmsgport,
+ mach_msg_type_name_t *oldmsgport_type)
{
if (!p)
return EOPNOTSUPP;
*oldmsgport = p->p_msgport;
+ *oldmsgport_type = MACH_MSG_TYPE_COPY_SEND;
+
p->p_msgport = msgport;
p->p_deadmsg = 0;
if (p->p_checkmsghangs)