lkml.org 
[lkml]   [2013]   [Jun]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH] ptrace: make PTRACE_DETACH work on non-stopped tracees.
    On 06/19, Pedro Alves wrote:
    >
    > On 06/19/2013 05:09 PM, Jan Kratochvil wrote:
    > > On Wed, 19 Jun 2013 17:15:36 +0200, Denys Vlasenko wrote:
    > >> CCing Jan to hear his comments from gdb side.
    >
    > PTRACE_DETACH takes a signal number in the data parameter.
    > What happens to if the tracer passes a non-zero signal?

    non-zero doesn't matter, zero is equally bad.

    ptrace_detach() simply does child->exit_code = data, assuming
    that child will look at it after resume. This is just wrong if
    the child is not stopped.

    Oleg.



    \
     
     \ /
      Last update: 2013-06-19 19:21    [W:4.055 / U:0.024 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site