From 0bc74163d5406e305b84f8f51dbce097bb46fa90 Mon Sep 17 00:00:00 2001 From: Justus Winter Date: Tue, 1 Nov 2016 18:02:34 +0100 Subject: Adjust to the fixed new task notifications. * boot/boot.c (S_mach_notify_new_task): The send rights are now indeed moved to the target task, adjust accordingly. * proc/mgt.c (S_mach_notify_new_task): Likewise. --- proc/mgt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'proc/mgt.c') diff --git a/proc/mgt.c b/proc/mgt.c index d572788e..8dc82f11 100644 --- a/proc/mgt.c +++ b/proc/mgt.c @@ -1082,8 +1082,8 @@ S_mach_notify_new_task (struct port_info *notify, err = S_proc_child (parentp, task); assert_perror (err); - /* Relay the notification. */ - mach_notify_new_task (childp->p_task_namespace, task, parent); + /* Relay the notification. This consumes task and parent. */ + return mach_notify_new_task (childp->p_task_namespace, task, parent); } mach_port_deallocate (mach_task_self (), task); -- cgit v1.2.3