From 87c1eba3e7c9402ca59340db8a43a4c9ef5b3bd5 Mon Sep 17 00:00:00 2001 From: Justus Winter Date: Thu, 13 Oct 2016 23:39:33 +0200 Subject: proc: Fix new task notifications. * proc/mgt.c (S_mach_notify_new_task): Fix receiver handling, fix port leak. * proc/mig-mutate.h: Mutate the task notification protocol. --- proc/mig-mutate.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'proc/mig-mutate.h') diff --git a/proc/mig-mutate.h b/proc/mig-mutate.h index 62dc2a59..35b02418 100644 --- a/proc/mig-mutate.h +++ b/proc/mig-mutate.h @@ -35,3 +35,12 @@ end_using_port_info (port_info_t) #define NOTIFY_IMPORTS \ import "libports/mig-decls.h"; + +#define TASK_NOTIFY_INTRAN \ + port_info_t begin_using_port_info_port (mach_port_t) +#define TASK_NOTIFY_INTRAN_PAYLOAD \ + port_info_t begin_using_port_info_payload +#define TASK_NOTIFY_DESTRUCTOR \ + end_using_port_info (port_info_t) +#define TASK_NOTIFY_IMPORTS \ + import "libports/mig-decls.h"; -- cgit v1.2.3