From owner-freebsd-current@FreeBSD.ORG Mon May 12 23:53:15 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4B30E37B401; Mon, 12 May 2003 23:53:15 -0700 (PDT) Received: from sccrmhc02.attbi.com (sccrmhc02.attbi.com [204.127.202.62]) by mx1.FreeBSD.org (Postfix) with ESMTP id 919F443F75; Mon, 12 May 2003 23:53:14 -0700 (PDT) (envelope-from DougB@freebsd.org) Received: from master.dougb.net (12-234-22-23.client.attbi.com[12.234.22.23]) by attbi.com (sccrmhc02) with SMTP id <2003051306531300200ojfmue>; Tue, 13 May 2003 06:53:14 +0000 Date: Mon, 12 May 2003 23:53:12 -0700 (PDT) From: Doug Barton To: Don Lewis In-Reply-To: <200305130601.h4D612M7049395@gw.catspoiler.org> Message-ID: <20030512230900.S647@znfgre.qbhto.arg> References: <200305130601.h4D612M7049395@gw.catspoiler.org> Organization: http://www.FreeBSD.org/ X-message-flag: Outlook -- Not just for spreading viruses anymore! MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-current@FreeBSD.org Subject: Re: mtv leaves a zombie after exit X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 May 2003 06:53:15 -0000 On Mon, 12 May 2003, Don Lewis wrote: > On 12 May, Doug Barton wrote: > > On Mon, 12 May 2003, Terry Lambert wrote: > > > >> A "ps -gaxl" will print the wait channel, which may be more > >> informative. > > > > UID PID PPID CPU PRI NI VSZ RSS MWCHAN STAT TT TIME COMMAND > > 1000 0 1 0 -84 0 0 0 - ZW p4 0:00.00 (mtvp) > > > > BTW, inre your question about the shell, it's bash. But, I get the exact > > same results if mtv is started as a child of the shell, as a child of > > windowmaker, or as a child of netscape. > > Does this application use Linux threads? Yes. I've never needed the linux threads port to run mtv, but just for grins I installed it and I get the same results. > The following code in wait1() makes me think that if a thread somehow > gets orphaned by the parent Linux process, it will never get reaped. > The exit code for Linux should probably wait for any child threads to > exit. Cool! Fixing that is beyond me, but if someone sends me a patch, I'll be glad to test it. Thanks for your analysis. Doug -- This .signature sanitized for your protection