Subject: CVS commit: src/usr.bin/w
To: None <source-changes@netbsd.org>
From: Christos Zoulas <christos@netbsd.org>
List: source-changes
Date: 02/26/2003 21:10:29
Module Name:	src
Committed By:	christos
Date:		Wed Feb 26 19:10:29 UTC 2003

Modified Files:
	src/usr.bin/w: w.c

Log Message:
keep track of the two proc entries significant to the utmp entry. The one
indicated by the pid in struct utmpx [or ftpd hack], and the one that is
associated with the controlling tty, is in the foreground process group,
and has most cpu. If the second one exists, use that one, else use the first
one.


To generate a diff of this commit:
cvs rdiff -r1.57 -r1.58 src/usr.bin/w/w.c

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