[PATCH/v2 2/2] Handle followfork using ptrace_setoptions if available

Roland McGrath roland at redhat.com
Wed Oct 13 06:36:13 UTC 2010


> +		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




More information about the Strace-devel mailing list