[PATCH] Try to use PTRACE_SETOPTIONS to handle non-ptrace SIGTRAP

Roland McGrath roland at redhat.com
Fri Jul 23 09:55:14 UTC 2010


> Roland McGrath <roland at redhat.com> writes:
> 
> >> >> > 	if (exiting(tcp) && !syserror(tcp))
> >> >> > 		tcp->flags |= TCB_WAITEXECVE;
> >> >> 
> >> >> This is of course wrong.
> >> >
> >> > Are you kidding?
> >> 
> >> Of course not!  How do you think does this bit get cleared again?
> >
> > How does it get cleared now?
> 
> By the post-execve trap, of course.

Right.  That's what I just said, but with some actual explanation
(get_scno does it).  And like I just said, that is unchanged with
the code above.  You have yet to explain why you think it's wrong.


Thanks,
Roland




More information about the Strace-devel mailing list