cvs commit: src/sys/kern kern_acct.c

From: Robert Watson <>
Date: Sat, 22 Jan 2005 19:22:08 +0000 (UTC)
rwatson     2005-01-22 19:22:08 UTC

  FreeBSD src repository

  Modified files:        (Branch: RELENG_5)
    sys/kern             kern_acct.c 
  Merge kern_acct.c:1.73 from HEAD to RELENG_5:
    date: 2005/01/08 04:45:57;  author: rwatson;  state: Exp;  lines: +12 -1
    In acct_process(), do a lockless read of acctvp to see if it's NULL
    before deciding to do more expensive locking to account for process
    exit.  This acceptable minor race avoids two mutex operations in
    that highly common case of accounting not being enabled.
  Revision  Changes    Path  +12 -1     src/sys/kern/kern_acct.c
Received on Sat Jan 22 2005 - 19:22:09 UTC