From owner-freebsd-current@FreeBSD.ORG Mon May 12 10:26:34 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 F37E337B401; Mon, 12 May 2003 10:26:33 -0700 (PDT) Received: from gw.catspoiler.org (217-ip-163.nccn.net [209.79.217.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4562D43FBD; Mon, 12 May 2003 10:26:33 -0700 (PDT) (envelope-from truckman@FreeBSD.org) Received: from FreeBSD.org (mousie.catspoiler.org [192.168.101.2]) by gw.catspoiler.org (8.12.9/8.12.9) with ESMTP id h4CHQOM7048113; Mon, 12 May 2003 10:26:28 -0700 (PDT) (envelope-from truckman@FreeBSD.org) Message-Id: <200305121726.h4CHQOM7048113@gw.catspoiler.org> Date: Mon, 12 May 2003 10:26:24 -0700 (PDT) From: Don Lewis To: tlambert2@mindspring.com In-Reply-To: <3EBFB3CC.5673108C@mindspring.com> MIME-Version: 1.0 Content-Type: TEXT/plain; charset=us-ascii cc: freebsd-current@FreeBSD.org cc: DougB@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: Mon, 12 May 2003 17:26:34 -0000 On 12 May, Terry Lambert wrote: > Doug Barton wrote: >> For some time now on -current whenever I run mtv, it leaves a zombie after >> it exits: >> >> USER PID PPID %CPU %MEM VSZ RSS STAT STARTED TIME COMMAND >> doug 0 1 0.0 0.0 0 0 ZW - 0:00.00 (mtvp) >> >> It runs fine, displays the video fine, but it always leaves a zombie. > > Zombies exist when the parent process fails to reap child > exit status. This may be a bug in your shell. If it's not > a bug in your shell, then it's a bug in kernel (probably in > fork_exit). In this case PPID == 1, so even if the parent process failed to reap the child, init should have reaped the mtvp process when the parent process exited. The "ZW" state looks suspicious. I'd expect to see just "Z". Maybe that's why the process isn't getting reaped.