From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23351 invoked by alias); 26 Jul 2004 19:30:07 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 23344 invoked from network); 26 Jul 2004 19:30:06 -0000 Received: from unknown (HELO nevyn.them.org) (66.93.172.17) by sourceware.org with SMTP; 26 Jul 2004 19:30:06 -0000 Received: from drow by nevyn.them.org with local (Exim 4.34 #1 (Debian)) id 1BpB9c-0006my-Q6; Mon, 26 Jul 2004 15:28:56 -0400 Date: Mon, 26 Jul 2004 19:30:00 -0000 From: Daniel Jacobowitz To: Ashley Pittman Cc: gdb-patches@sources.redhat.com Subject: Re: patch: Clean shutdown if still attached at exit in batch mode Message-ID: <20040726192856.GA26044@nevyn.them.org> Mail-Followup-To: Ashley Pittman , gdb-patches@sources.redhat.com References: <1083244544.10141.209.camel@ashley> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1083244544.10141.209.camel@ashley> User-Agent: Mutt/1.5.5.1+cvs20040105i X-SW-Source: 2004-07/txt/msg00374.txt.bz2 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