do_wait reorganization
authorRoland McGrath <roland@redhat.com>
Thu, 20 Mar 2008 02:24:59 +0000 (19:24 -0700)
committerRoland McGrath <roland@redhat.com>
Thu, 17 Jul 2008 01:02:33 +0000 (18:02 -0700)
commit98abed02007b19bbfd68b6d06a5485afc3eeb01b
tree3f0091b409592d74d56bb53847566fb32aaa0bfa
parent33af79d12e0fa25545d49e86afc67ea8ad5f2f40
do_wait reorganization

This breaks out the guts of do_wait into three subfunctions.
The control flow is less nonobvious without so much goto.
do_wait_thread and ptrace_do_wait contain the main work of the outer loop.
wait_consider_task contains the main work of the inner loop.

Signed-off-by: Roland McGrath <roland@redhat.com>
kernel/exit.c