Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 Jun 2004 12:07:42 -0700 (PDT)
From:      Don Lewis <truckman@FreeBSD.org>
To:        bde@zeta.org.au
Cc:        current@FreeBSD.org
Subject:   Re: calcru: negative time ... followed by freeze
Message-ID:  <200406211907.i5LJ7gRm049126@gw.catspoiler.org>
In-Reply-To: <20040621220455.T9194@gamplex.bde.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On 21 Jun, Bruce Evans wrote:
> On Mon, 21 Jun 2004, Don Lewis wrote:

>> It also looks like a bug that a zombie remains in the [running] state
>> and thus looks interesting to ttyinfo().
> 
> I think it isn't really running.  ttyinfo() should pick it if it is the
> only process the terminal.  ttyinfo() does pick it for the zombie in the
> test program in the PR, and reports that it is running, but ps reports
> it correctly as a zomble.

ttyinfo() prints "[running]" if TD_IS_RUNNING(td) is true.  I think the
problem is that thread_exit() doesn't set td_state to TDS_INACTIVE if
the process only has one thread.



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