From 40c752c4e5e3c8c20cee345790954511e9f3825b Mon Sep 17 00:00:00 2001 From: Justus Winter Date: Mon, 6 Mar 2017 00:18:21 +0100 Subject: proc: Receive new-task notifications on kernel's process port. * proc/main.c (main): Initialize 'kernel_proc' and use it to register for new-task notifications. * proc/mgt.c (S_mach_notify_new_task): Adapt receiver check. * proc/proc.h (kernel_proc): New variable. --- proc/proc.h | 1 + 1 file changed, 1 insertion(+) (limited to 'proc/proc.h') diff --git a/proc/proc.h b/proc/proc.h index 2c08fd13..ffb54bf0 100644 --- a/proc/proc.h +++ b/proc/proc.h @@ -148,6 +148,7 @@ struct port_class *generic_port_class; struct port_class *exc_class; mach_port_t generic_port; /* messages not related to a specific proc */ +struct proc *kernel_proc; pthread_mutex_t global_lock; -- cgit v1.2.3