From owner-cvs-all@FreeBSD.ORG  Tue Feb  7 18:59:48 2006
Return-Path: <owner-cvs-all@FreeBSD.ORG>
X-Original-To: cvs-all@FreeBSD.org
Delivered-To: cvs-all@FreeBSD.org
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 2B30416A423;
	Tue,  7 Feb 2006 18:59:48 +0000 (GMT) (envelope-from jhb@FreeBSD.org)
Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115])
	by mx1.FreeBSD.org (Postfix) with ESMTP id D87EB43D4C;
	Tue,  7 Feb 2006 18:59:47 +0000 (GMT) (envelope-from jhb@FreeBSD.org)
Received: from repoman.freebsd.org (localhost [127.0.0.1])
	by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id k17IxlPS000261;
	Tue, 7 Feb 2006 18:59:47 GMT (envelope-from jhb@repoman.freebsd.org)
Received: (from jhb@localhost)
	by repoman.freebsd.org (8.13.1/8.13.1/Submit) id k17IxlPd000260;
	Tue, 7 Feb 2006 18:59:47 GMT (envelope-from jhb)
Message-Id: <200602071859.k17IxlPd000260@repoman.freebsd.org>
From: John Baldwin <jhb@FreeBSD.org>
Date: Tue, 7 Feb 2006 18:59:47 +0000 (UTC)
To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
X-FreeBSD-CVS-Branch: HEAD
Cc: 
Subject: cvs commit: src/sys/kern kern_acct.c
X-BeenThere: cvs-all@freebsd.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: CVS commit messages for the entire tree <cvs-all.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/cvs-all>,
	<mailto:cvs-all-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/cvs-all>
List-Post: <mailto:cvs-all@freebsd.org>
List-Help: <mailto:cvs-all-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/cvs-all>,
	<mailto:cvs-all-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Tue, 07 Feb 2006 18:59:48 -0000

jhb         2006-02-07 18:59:47 UTC

  FreeBSD src repository

  Modified files:
    sys/kern             kern_acct.c 
  Log:
  Provide some anti-footshooting.  Don't allow the user to set the interval
  for acctwatch() runs to be negative or zero as this could result in either
  a possible hang (or panic if INVARIANTS is on).  Previously the accounting
  code handled the <= 0 case by calling acctwatch on every clock tick (eww!)
  due to an implementation detail of callout_reset().  (Tick counts of
  <= 0 are converted to 1).
  
  MFC after:      3 days
  
  Revision  Changes    Path
  1.80      +23 -2     src/sys/kern/kern_acct.c