summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--debian/patches/fix-new-task-notification.patch18
1 files changed, 7 insertions, 11 deletions
diff --git a/debian/patches/fix-new-task-notification.patch b/debian/patches/fix-new-task-notification.patch
index 5549362..65d6172 100644
--- a/debian/patches/fix-new-task-notification.patch
+++ b/debian/patches/fix-new-task-notification.patch
@@ -1,20 +1,16 @@
diff --git a/kern/task.c b/kern/task.c
-index a11fb8e..46f83f8 100644
+index a11fb8e..8eb2244 100644
--- a/kern/task.c
+++ b/kern/task.c
-@@ -173,13 +173,9 @@ 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)
+@@ -177,10 +177,8 @@ kern_return_t task_create(
+ task_reference (new_task);
+ task_reference (parent_task);
mach_notify_new_task (new_task_notification,
- convert_task_to_port (new_task),
- convert_task_to_port (parent_task));
-- }
+ new_task, parent_task);
-
+ }
+-
ipc_task_enable(new_task);
+ *child_task = new_task;