diff -Naur -X exclude-files ac_clean/arch/um/kernel/process.c ac/arch/um/kernel/process.c --- ac_clean/arch/um/kernel/process.c Sat May 12 20:01:09 2001 +++ ac/arch/um/kernel/process.c Sat May 12 20:50:28 2001 @@ -263,13 +263,11 @@ perror("get_one_stack : couldn't start thread"); exit(1); } + wait_for_stop(pid, SIGSTOP, PTRACE_CONT); if(ptrace(PTRACE_ATTACH, pid, 0, 0) < 0){ perror("get_one_stack : couldn't attach to child"); exit(1); } - wait_for_stop(pid, SIGSTOP, PTRACE_CONT); - ptrace(PTRACE_CONT, pid, 0, 0); - wait_for_stop(pid, SIGSTOP, PTRACE_CONT); if(ptrace_getregs(pid, regs_out) < 0){ perror("get_one_stack : couldn't get registers"); exit(1);