Messages in this thread | | | Date | Thu, 17 Jul 1997 19:57:19 +0200 | From | Pavel Machek <> | Subject | Re: 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/ ;-).
| |