Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 7 Feb 2006 18:59:47 +0000 (UTC)
From:      John Baldwin <jhb@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/kern kern_acct.c
Message-ID:  <200602071859.k17IxlPd000260@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



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