summaryrefslogtreecommitdiff
path: root/proc/mgt.c
diff options
context:
space:
mode:
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);