This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: patch: Clean shutdown if still attached at exit in batch mode
- From: Ashley Pittman <ashley at quadrics dot com>
- To: Daniel Jacobowitz <drow at false dot org>
- Cc: gdb-patches at sources dot redhat dot com
- Date: Tue, 27 Jul 2004 10:40:07 +0100
- Subject: Re: patch: Clean shutdown if still attached at exit in batch mode
- References: <1083244544.10141.209.camel@ashley> <20040726192856.GA26044@nevyn.them.org>
On Mon, 2004-07-26 at 20:28, Daniel Jacobowitz wrote:
> On Thu, Apr 29, 2004 at 02:15:44PM +0100, Ashley Pittman wrote:
> >
> > The problem here is that it does not detach before quiting so the
> > process becomes a zombie. Attached is a patch to prevent this.
>
> This should not cause the process to become a zombie. Do you mean that
> it hangs around in the T (stopped) state?
Yes, it appears that I do. On the basis of this I've just noticed that
kill -CONT <pid> brings it back to life so perhaps this isn't as serious
as I had previously thought.
I'm running a different kernel now though so can't say for sure,
previously I know I had to reboot the node to clear it however this was
a function of the way that I was starting processes. Curiously this
only seemed to affect Redhat kernels so I switched to using vanilla
kernels which combined with running a modified gdb means I haven't
observed this happen for a while.
Ashley,