cvs commit: src/sys/kern kern_acct.c

John Baldwin jhb at FreeBSD.org
Tue Feb 7 10:59:48 PST 2006


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


More information about the cvs-all mailing list