summaryrefslogtreecommitdiff
path: root/debian/patches
diff options
context:
space:
mode:
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