diff options
Diffstat (limited to 'proc')
-rw-r--r-- | proc/msg.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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) |