Skip to content
Snippets Groups Projects
  • Roland McGrath's avatar
    98abed02
    do_wait reorganization · 98abed02
    Roland McGrath authored
    
    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: default avatarRoland McGrath <roland@redhat.com>
    98abed02
    History
    do_wait reorganization
    Roland McGrath authored
    
    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: default avatarRoland McGrath <roland@redhat.com>