Commit f8d0801f authored by Roland McGrath's avatar Roland McGrath Committed by Sridhar Samudrala

[PATCH] core dump psinfo.pr_sname letter fix

This patch makes the state letter in the pr_sname field in core dumps
correct for stopped and zombie threads.  The order needed to be changed when
the TASK_* values changed.  This matches the letters used in sched.c:show_task.
parent 232adff4
......@@ -1105,7 +1105,7 @@ static void fill_psinfo(struct elf_prpsinfo *psinfo, struct task_struct *p)
i = p->state ? ffz(~p->state) + 1 : 0;
psinfo->pr_state = i;
psinfo->pr_sname = (i < 0 || i > 5) ? '.' : "RSDZTD"[i];
psinfo->pr_sname = (i < 0 || i > 5) ? '.' : "RSDTZW"[i];
psinfo->pr_zomb = psinfo->pr_sname == 'Z';
psinfo->pr_nice = task_nice(p);
psinfo->pr_flag = p->flags;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment