From owner-freebsd-threads@FreeBSD.ORG Mon Jun 21 20:44:54 2004 Return-Path: Delivered-To: freebsd-threads@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A30C016A4CE; Mon, 21 Jun 2004 20:44:54 +0000 (GMT) Received: from rwcrmhc12.comcast.net (rwcrmhc12.comcast.net [216.148.227.85]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8F33E43D55; Mon, 21 Jun 2004 20:44:54 +0000 (GMT) (envelope-from julian@elischer.org) Received: from interjet.elischer.org ([24.7.73.28]) by comcast.net (rwcrmhc12) with ESMTP id <200406212044390140028gr9e>; Mon, 21 Jun 2004 20:44:40 +0000 Received: from localhost (localhost.elischer.org [127.0.0.1]) by InterJet.elischer.org (8.9.1a/8.9.1) with ESMTP id NAA40350; Mon, 21 Jun 2004 13:44:37 -0700 (PDT) Date: Mon, 21 Jun 2004 13:44:36 -0700 (PDT) From: Julian Elischer To: Don Lewis In-Reply-To: <200406211907.i5LJ7gRm049126@gw.catspoiler.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: threads@FreeBSD.org cc: rwatson@FreeBSD.org cc: current@FreeBSD.org cc: bde@zeta.org.au Subject: Re: calcru: negative time ... followed by freeze X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Jun 2004 20:44:54 -0000 On Mon, 21 Jun 2004, Don Lewis wrote: > 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. fixed.. thanks