Messages in this thread |  | | Date | Fri, 20 May 2011 10:46:41 +0200 | | From | Tejun Heo <> | | Subject | Re: [PATCH 10/10] ptrace: implement group stop notification for ptracer |
| |
Hello, Oleg.
On Thu, May 19, 2011 at 07:13:27PM +0200, Oleg Nesterov wrote: > OK. I still hope we can avoid this somehow. May be play with exit_code > so that do_wait() can succeed even if the JOBCTL_TRAPPING tracee is > running. Perhaps.
I considered that but re-trapping seemed cleaner to me. wait(2) already depends on retries so I don't think adding TRAPPING wait introduces too much extra complexity. That said, if you can come up with something simpler, by all means.
> If only we could notify the tracer from ptrace_trap_notify... IIUC, > this is the only problem? I mean, apart from this there is no need > to wake up the tracee.
Yeap, correct. ahead.
Thanks.
-- tejun
|  |