This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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,


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]