Re: mtv leaves a zombie after exit

From: Doug Barton <DougB_at_FreeBSD.org>
Date: Mon, 12 May 2003 23:53:12 -0700 (PDT)
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
Received on Mon May 12 2003 - 21:53:15 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:07 UTC