Subject: Re: netbsd-4 (and -current) - ps acting funny ?
To: None <current-users@netbsd.org>
From: Michael van Elst <mlelstv@serpens.de>
List: current-users
Date: 07/28/2007 15:56:40
kardel@NetBSD.org (Frank Kardel) writes:

>Sensible time output seem state dependent. Runnanble or Stopped
>processes show time value that match my expectations more.

The p_stat of a sleeping process is seen as SDYING (3) because
the kvm interface overwrites the value with l_stat == LSSLEEP (3).

A 'dying' process has no valid cputime, thus ps prints 0.

-- 
-- 
                                Michael van Elst
Internet: mlelstv@serpens.de
                                "A potential Snark may lurk in every tree."