summaryrefslogtreecommitdiff
path: root/debian/patches
diff options
context:
space:
mode:
authorJustus Winter <4winter@informatik.uni-hamburg.de>2015-02-11 00:05:21 +0100
committerJustus Winter <4winter@informatik.uni-hamburg.de>2015-02-11 00:05:21 +0100
commit30ad4904018bc4216f24b6120c704fb93339c228 (patch)
tree693e58d0f9b75009b8510c0cfc60fc641811790f /debian/patches
parent8c81fffffb020bb632f701a155c280415b7027da (diff)
add fix-new-task-notification.patch
Diffstat (limited to 'debian/patches')
-rw-r--r--debian/patches/fix-new-task-notification.patch19
-rw-r--r--debian/patches/series1
2 files changed, 20 insertions, 0 deletions
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