Subject: Re: netbsd-4 (and -current) - ps acting funny ?
To: None <>
From: Michael van Elst <>
List: current-users
Date: 07/28/2007 15:56:40 (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
                                "A potential Snark may lurk in every tree."