Parent process switching on debugger abort in 2.0.3x

Philip Gladstone (philip@raptor.com)
Mon, 14 Jul 1997 14:32:30 -0400


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 arises in the exit_notify function which should be
slightly smarter when it is reparenting child processes -- it
should switch processes back to their original parents if the
tracing flags are set.

I can probably produce a patch for this *if* there is agreement
that the current behaviour is incorrect. Any views?

Philip

-- 
Philip Gladstone                           +1 617 487 7700
Raptor Systems, Waltham, MA         http://www.raptor.com/