bin/100585: [PATCH] top -s0 causes load excessive
Roberto Lima
roberto at forbrazil.com.br
Wed Jul 19 23:20:18 UTC 2006
>Number: 100585
>Category: bin
>Synopsis: [PATCH] top -s0 causes load excessive
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Wed Jul 19 23:20:16 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator: Roberto Lima
>Release: FreeBSD 6.1
>Organization:
ForBrazil
>Environment:
FreeBSD bsd.forbr.com.br 6.1-STABLE FreeBSD 6.1-STABLE #1: Tue Jun 27 17:20:15 BRT 2006 root at bsd.forbr.com.br:/usr/src/sys/i386/compile/ForBrazil i386
>Description:
I see that my costumers have been used 'top -s0' too many times and this is overloading in my system.
>How-To-Repeat:
just use 'top -s0' and see the load average going up.
>Fix:
--- top.c.old Wed Jul 19 19:49:23 2006
+++ top.c Wed Jul 19 19:49:32 2006
@@ -331,7 +331,7 @@
break;
case 's':
- if ((delay = atoi(optarg)) < 0 || (delay == 0 && getuid() != 0))
+ if ((delay = atoi(optarg)) < 1 || (delay == 0 && getuid() != 0))
{
fprintf(stderr,
"%s: warning: seconds delay should be positive -- using default\n",
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-bugs
mailing list