aboutsummaryrefslogtreecommitdiff
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, 3 insertions, 1 deletions
diff --git a/proc/mgt.c b/proc/mgt.c
index 8dc82f11..dc3a19ee 100644
--- a/proc/mgt.c
+++ b/proc/mgt.c
@@ -1055,7 +1055,9 @@ S_mach_notify_new_task (struct port_info *notify,
{
struct proc *parentp, *childp;
- if (! notify || notify->class != generic_port_class)
+ if (! notify
+ || (kernel_proc == NULL && notify->class != generic_port_class)
+ || (kernel_proc != NULL && notify != (struct port_info *) kernel_proc))
return EOPNOTSUPP;
parentp = task_find_nocreate (parent);