aboutsummaryrefslogtreecommitdiff
path: root/proc/mgt.c
diff options
context:
space:
mode:
Diffstat (limited to 'proc/mgt.c')
-rw-r--r--proc/mgt.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/proc/mgt.c b/proc/mgt.c
index 38a3a90c..67d74049 100644
--- a/proc/mgt.c
+++ b/proc/mgt.c
@@ -1365,6 +1365,9 @@ S_mach_notify_new_task (struct port_info *notify,
|| (kernel_proc != NULL && notify != (struct port_info *) kernel_proc))
return EOPNOTSUPP;
+ if (task == MACH_PORT_DEAD)
+ return ESRCH;
+
parentp = task_find_nocreate (parent);
if (! parentp)
return ESRCH;