lkml.org 
[lkml]   [2011]   [May]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [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


\
 
 \ /
  Last update: 2011-05-20 10:49    [from the cache]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and my Meterkast|Read the blog