Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 12 May 2003 10:26:24 -0700 (PDT)
From:      Don Lewis <truckman@FreeBSD.org>
To:        tlambert2@mindspring.com
Cc:        DougB@FreeBSD.org
Subject:   Re: mtv leaves a zombie after exit
Message-ID:  <200305121726.h4CHQOM7048113@gw.catspoiler.org>
In-Reply-To: <3EBFB3CC.5673108C@mindspring.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200305121726.h4CHQOM7048113>