[PATCH] fix /proc printing of TASK_DEAD state

From: Roland McGrath
Date: Thu Aug 05 2004 - 15:42:37 EST


I just stumbled across this patch that's been sitting in my tree for ages.
I thought I'd sent this in before. It's a trivial fix for the printing of
task state in /proc and sysrq dumps and such, so that TASK_DEAD shows up
correctly. This state is pretty much only ever there to be seen when there
are exit/reaping bugs, but it's not like that hasn't come up.


Thanks,
Roland

Signed-off-by: Roland McGrath <roland@xxxxxxxxxx>

Index: linux-2.6/fs/proc/array.c
===================================================================
RCS file: /home/roland/redhat/bkcvs/linux-2.5/fs/proc/array.c,v
retrieving revision 1.62
diff -u -b -p -r1.62 array.c
--- linux-2.6/fs/proc/array.c 25 May 2004 15:37:14 -0000 1.62
+++ linux-2.6/fs/proc/array.c 5 Aug 2004 20:36:53 -0000
@@ -137,6 +137,7 @@ static inline const char * get_task_stat
TASK_INTERRUPTIBLE |
TASK_UNINTERRUPTIBLE |
TASK_ZOMBIE |
+ TASK_DEAD |
TASK_STOPPED);
const char **p = &task_state_array[0];

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/