summaryrefslogtreecommitdiff
path: root/proc/mgt.c
diff options
context:
space:
mode:
authorJustus Winter <justus@gnupg.org>2016-11-01 18:02:34 +0100
committerJustus Winter <justus@gnupg.org>2016-11-01 18:04:29 +0100
commit0bc74163d5406e305b84f8f51dbce097bb46fa90 (patch)
tree4d93779fdec2adbf65ec61e4656945296d422039 /proc/mgt.c
parent61f89952020ff1ff34e391ae78acd2da51476c41 (diff)
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.
Diffstat (limited to 'proc/mgt.c')
-rw-r--r--proc/mgt.c4
1 files changed, 2 insertions, 2 deletions
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);