> + if (do_ptrace(PTRACE_GETEVENTMSG, tcp, NULL, &childpid) < 0) { > + if (errno != ESRCH) { > + cleanup(); > + exit(1); This should report the ptrace failure details before it bails out. Thanks, Roland