Subject: bin/31908: top doesn't check invalid values
To: None <gnats-admin@netbsd.org, netbsd-bugs@netbsd.org>
From: None <zafer@gmx.org>
List: netbsd-bugs
Date: 10/24/2005 15:59:00
>Number:         31908
>Category:       bin
>Synopsis:       top doesn't check invalid values
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Mon Oct 24 15:59:00 +0000 2005
>Originator:     Zafer Aydogan
>Release:        3.99.10
>Organization:
>Environment:
>Description:
This isn't really a bug, but a change request.

When invoking top with a very high number as refresh screen interval (s) from the command line, top uses 0 as the interval.

$ top -s 999999999

while displaying, you can exit with CTRL-C but you can't send new commands like a new time interval, or sort order (o) nor quit (q).

I would like to see an immediate exit, when invoked with invalid values, like in FreeBSD.

>How-To-Repeat:
$ top -s 999999999
>Fix: