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
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to