]> git.hungrycats.org Git - linux/commitdiff
[PATCH] fix /proc printing of TASK_DEAD state
authorRoland McGrath <roland@redhat.com>
Thu, 5 Aug 2004 10:43:51 +0000 (03:43 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Thu, 5 Aug 2004 10:43:51 +0000 (03:43 -0700)
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.

Signed-off-by: Roland McGrath <roland@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/proc/array.c

index fbcf8bea0278d5eb3191d76e761f88d0fa490086..fe14439309ab3b367ce34467c07e7b039f7100bb 100644 (file)
@@ -137,6 +137,7 @@ static inline const char * get_task_state(struct task_struct *tsk)
                                           TASK_INTERRUPTIBLE |
                                           TASK_UNINTERRUPTIBLE |
                                           TASK_ZOMBIE |
+                                          TASK_DEAD |
                                           TASK_STOPPED);
        const char **p = &task_state_array[0];