Skip to content

Commit

Permalink
[PATCH] xtensa: ptrace: EXIT_ZOMBIE fix
Browse files Browse the repository at this point in the history
We're testing the wrong task_struct field.

Acked-by: Chris Zankel <chris@zankel.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Bill Huey (hui authored and Linus Torvalds committed Sep 1, 2006
1 parent 35df17c commit d742eae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/xtensa/kernel/ptrace.c
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ long arch_ptrace(struct task_struct *child, long request, long addr, long data)
*/
case PTRACE_KILL:
ret = 0;
if (child->state == EXIT_ZOMBIE) /* already dead */
if (child->exit_state == EXIT_ZOMBIE) /* already dead */
break;
child->exit_code = SIGKILL;
child->ptrace &= ~PT_SINGLESTEP;
Expand Down

0 comments on commit d742eae

Please sign in to comment.