diff options
author | Justus Winter <4winter@informatik.uni-hamburg.de> | 2015-02-25 16:29:30 +0100 |
---|---|---|
committer | Justus Winter <4winter@informatik.uni-hamburg.de> | 2015-02-25 16:29:30 +0100 |
commit | f367cf9633648fc06e3ec4493d07bbcec8c4d835 (patch) | |
tree | 0cf3f6751e754528798f3172809ebe8f40f2b0b9 /debian/patches/0001-kern-inherit-the-name-of-the-parent-task.patch | |
parent | 20d03c945d16f2df6e59716d81ea0639b721f1c8 (diff) |
add patch series
Diffstat (limited to 'debian/patches/0001-kern-inherit-the-name-of-the-parent-task.patch')
-rw-r--r-- | debian/patches/0001-kern-inherit-the-name-of-the-parent-task.patch | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/debian/patches/0001-kern-inherit-the-name-of-the-parent-task.patch b/debian/patches/0001-kern-inherit-the-name-of-the-parent-task.patch new file mode 100644 index 0000000..cdf659f --- /dev/null +++ b/debian/patches/0001-kern-inherit-the-name-of-the-parent-task.patch @@ -0,0 +1,31 @@ +From fe820bd2e22e5a0b5aa5bd50de3b06759e42af78 Mon Sep 17 00:00:00 2001 +From: Justus Winter <4winter@informatik.uni-hamburg.de> +Date: Thu, 16 Oct 2014 18:13:39 +0200 +Subject: [PATCH gnumach] kern: inherit the name of the parent task + +* kern/task.c (task_create): Inherit the name of the parent task. +--- + kern/task.c | 7 ++++++- + 1 file changed, 6 insertions(+), 1 deletion(-) + +diff --git a/kern/task.c b/kern/task.c +index a11fb8e..57e7f41 100644 +--- a/kern/task.c ++++ b/kern/task.c +@@ -171,7 +171,12 @@ kern_return_t task_create( + } + #endif /* FAST_TAS */ + +- snprintf (new_task->name, sizeof new_task->name, "%p", new_task); ++ if (parent_task == TASK_NULL) ++ snprintf (new_task->name, sizeof new_task->name, "%p", ++ new_task); ++ else ++ snprintf (new_task->name, sizeof new_task->name, "(%.*s)", ++ sizeof new_task->name - 3, parent_task->name); + + if (new_task_notification != NULL) { + task_reference (new_task); +-- +2.1.4 + |