patch: Clean shutdown if still attached at exit in batch mode

Ashley Pittman ashley@quadrics.com
Tue Jul 27 09:40:00 GMT 2004


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,



More information about the Gdb-patches mailing list