Re: Q: ptrace_detach() UTRACE_DETACH

2009-08-11 Thread Roland McGrath
I don't understand why this is better than just changing -ops. Except, yes, I agree with above. Sure, if you think about the innards they amount to about the same thing. After PTRACE_DETACH, there is one engine attached and it uses the special ops vector. They are really just different ways to

Q: ptrace_detach() UTRACE_DETACH

2009-08-05 Thread Oleg Nesterov
Still no code, only questions. One particular problem with attach/detach is that ptrace_detach_task(sig) doesn't really detach if sig != 0. Instead of UTRACE_DETACH we clear engine-data and do UTRACE_INTERRUPT. The actual detach should be done by ptrace_report_signal()-ptrace_resumed which