Subject: CVS commit: basesrc
To: None <source-changes@netbsd.org>
From: David Brownlee <abs@netbsd.org>
List: source-changes
Date: 04/12/2001 17:10:06
Module Name:	basesrc
Committed By:	abs
Date:		Thu Apr 12 14:10:06 UTC 2001

Modified Files:
	basesrc/usr.bin/top: top.c

Log Message:
if the read() on stdin for a command fails, exit.
This stops top ending up in an infinite cpu churning loop if the tty detaches,
or if something similar to 'top < /dev/null' is run.


To generate a diff of this commit:
cvs rdiff -r1.6 -r1.7 basesrc/usr.bin/top/top.c

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