+135
−80
Loading
Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more
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>