From 30ad4904018bc4216f24b6120c704fb93339c228 Mon Sep 17 00:00:00 2001 From: Justus Winter <4winter@informatik.uni-hamburg.de> Date: Wed, 11 Feb 2015 00:05:21 +0100 Subject: add fix-new-task-notification.patch --- debian/patches/fix-new-task-notification.patch | 19 +++++++++++++++++++ debian/patches/series | 1 + 2 files changed, 20 insertions(+) create mode 100644 debian/patches/fix-new-task-notification.patch (limited to 'debian') diff --git a/debian/patches/fix-new-task-notification.patch b/debian/patches/fix-new-task-notification.patch new file mode 100644 index 0000000..88f006b --- /dev/null +++ b/debian/patches/fix-new-task-notification.patch @@ -0,0 +1,19 @@ +diff --git a/kern/task.c b/kern/task.c +index a11fb8e..3340ff0 100644 +--- a/kern/task.c ++++ b/kern/task.c +@@ -173,13 +173,10 @@ kern_return_t task_create( + + snprintf (new_task->name, sizeof new_task->name, "%p", new_task); + +- if (new_task_notification != NULL) { +- task_reference (new_task); +- task_reference (parent_task); ++ if (new_task_notification != NULL) + mach_notify_new_task (new_task_notification, + convert_task_to_port (new_task), + convert_task_to_port (parent_task)); +- } + + ipc_task_enable(new_task); + diff --git a/debian/patches/series b/debian/patches/series index 7b52438..14a4242 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -8,3 +8,4 @@ Add-some-padding-to-make-objects-fit-a-single-cache-.patch vm_cache_policy.patch task-load.patch 0001-kern-fix-the-scheduler.patch +fix-new-task-notification.patch -- cgit v1.2.3