Subject: README: ps/top/w hang -- fixed
To: None <>
From: Jason R Thorpe <>
List: current-users
Date: 08/08/2000 16:51:53
Folks, for all of you who have been seeing those hangs when
you run ps/top/w while the system is under load, this fixes
the problem.  I have pulled the change up to the netbsd-1-5
branch, as well.

----- Forwarded message from Jason R Thorpe <> -----

Date: Wed, 9 Aug 2000 02:42:09 +0300 (EEST)
From: Jason R Thorpe <>
Subject: CVS commit: syssrc

Module Name:	syssrc
Committed By:	thorpej
Date:		Tue Aug  8 23:42:09 UTC 2000

Modified Files:
	syssrc/sys/kern: kern_sysctl.c

Log Message:
In fill_kproc2(), testing p->p_stats != NULL doesn't do much good,
instead test for (p->p_flag & I_INMEM), and don't access the U-area
(via p->p_stats) if that bit is clear.  Fixes the hangs people have
seen when the system is paging and the user runs top/ps/w.

To generate a diff of this commit:
cvs rdiff -r1.75 -r1.76 syssrc/sys/kern/kern_sysctl.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

----- End forwarded message -----

        -- Jason R. Thorpe <>