mirror of
https://github.com/joel16/android_kernel_sony_msm8994.git
synced 2025-01-25 05:34:43 +00:00
[PATCH] xtensa: ptrace: EXIT_ZOMBIE fix
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>
This commit is contained in:
parent
35df17c57c
commit
d742eae8e2
@ -212,7 +212,7 @@ long arch_ptrace(struct task_struct *child, long request, long addr, long data)
|
|||||||
*/
|
*/
|
||||||
case PTRACE_KILL:
|
case PTRACE_KILL:
|
||||||
ret = 0;
|
ret = 0;
|
||||||
if (child->state == EXIT_ZOMBIE) /* already dead */
|
if (child->exit_state == EXIT_ZOMBIE) /* already dead */
|
||||||
break;
|
break;
|
||||||
child->exit_code = SIGKILL;
|
child->exit_code = SIGKILL;
|
||||||
child->ptrace &= ~PT_SINGLESTEP;
|
child->ptrace &= ~PT_SINGLESTEP;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user