Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 4 May 2002 10:47:57 +0100
From:      David Malone <dwmalone@maths.tcd.ie>
To:        Edwin Groothuis <edwin@mavetju.org>
Cc:        freebsd-bugs@FreeBSD.org
Subject:   Re: bin/37702: /usr/bin/top uses 100% cpu in 'system'
Message-ID:  <20020504094757.GA59372@walton.maths.tcd.ie>
In-Reply-To: <200205031250.g43Co7H79157@freefall.freebsd.org>
References:  <200205031250.g43Co7H79157@freefall.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, May 03, 2002 at 05:50:07AM -0700, Edwin Groothuis wrote:
>                case 's':
>  -               if ((delay = atoi(optarg)) < 0)
>  +               if ((delay = atoi(optarg)) <= 0)
>                  {

I think this has been fixed in -current in another way:

	if ((delay = atoi(optarg)) < 0 || (delay == 0 && getuid() != 0))

this means you're only alowd to get continious updates if you're
root. (This change came from the last beta version of top which
was released by the original authors.)

	David.

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020504094757.GA59372>