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: Daniel Jacobowitz <drow at false dot org>
- To: Ashley Pittman <ashley at quadrics dot com>
- Cc: gdb-patches at sources dot redhat dot com
- Date: Mon, 26 Jul 2004 15:28:56 -0400
- Subject: Re: patch: Clean shutdown if still attached at exit in batch mode
- References: <1083244544.10141.209.camel@ashley>
On Thu, Apr 29, 2004 at 02:15:44PM +0100, Ashley Pittman wrote:
>
> Hi,
>
> I've been hitting some problems running gdb against live processes on
> ia64 nodes, often stack traces are incomplete due to signal handler
> issues or such like. If running gdb interactively then gdb drops back
> to the prompt and everything is fine but if run in batch mode it stops
> parsing the batch file and exits.
>
> 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?
--
Daniel Jacobowitz