lkml.org 
[lkml]   [1997]   [Jul]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Parent process switching on debugger abort in 2.0.3x

> Philip Gladstone <philip@raptor.com> writes:
> > It appears that if a debugger (or strace) aborts without
> > sucessfully detaching from the child process, then the child
> > process ends up being parented by init (pid 1). I believe
> > that this behaviour is incorrect and that if the debugger
> > or strace dies, then the target process should end up being
> > parented by its 'original' parent.
> >
> The problem isn't that easily solved.
>
> Suppose, for instance, you kill your debugger, but the beast has written a
> few breakpoints into the debuggee. What to do? Right -- either you kill the
> child along with the parent (any fatal signal) or it's the debugger's job
> to clean up after itself and properly detach the child (any other
> signal).

Well, and when I kill debugger with -9?
Pavel

--
I'm really pavel@atrey.karlin.mff.cuni.cz. Pavel
Look at http://atrey.karlin.mff.cuni.cz/~pavel/ ;-).

\
 
 \ /
  Last update: 2005-03-22 13:39    [W:0.124 / U:0.036 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site