ptrace children revamp
ptrace no longer fiddles with the children/sibling links, and the
old ptrace_children list is gone. Now ptrace, whether of one's own
children or another's via PTRACE_ATTACH, just uses the new ptraced
list instead.
There should be no user-visible difference that matters. The only
change is the order in which do_wait() sees multiple stopped
children and stopped ptrace attachees. Since wait_task_stopped()
was changed earlier so it no longer reorders the children list, we
already know this won't cause any new problems.
Signed-off-by:
Roland McGrath <roland@redhat.com>
Showing
- include/linux/init_task.h 2 additions, 2 deletionsinclude/linux/init_task.h
- include/linux/sched.h 12 additions, 14 deletionsinclude/linux/sched.h
- kernel/exit.c 119 additions, 107 deletionskernel/exit.c
- kernel/fork.c 3 additions, 3 deletionskernel/fork.c
- kernel/ptrace.c 24 additions, 13 deletionskernel/ptrace.c
Loading
Please register or sign in to comment