1 Index: linux-2.6/kernel/sched.c
2 ===================================================================
3 --- linux-2.6.orig/kernel/sched.c 2006-07-15 11:51:46.000000000 +0800
4 +++ linux-2.6/kernel/sched.c 2006-07-15 16:24:35.000000000 +0800
5 @@ -4652,7 +4652,7 @@ static inline struct task_struct *younge
7 static const char stat_nam[] = "RSDTtZX";
9 -static void show_task(struct task_struct *p)
10 +void show_task(struct task_struct *p)
12 struct task_struct *relative;
13 unsigned long free = 0;
14 @@ -4698,9 +4698,10 @@ static void show_task(struct task_struct
18 - if (state != TASK_RUNNING)
19 + if (state != TASK_RUNNING || p == current)
22 +EXPORT_SYMBOL(show_task);