Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 Aug 2008 15:02:17 +0000 (UTC)
From:      Ed Schouten <ed@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:  <200808211502.m7LF2P1Y045269@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
ed          2008-08-21 15:02:17 UTC

  FreeBSD src repository

  Modified files:
    sys/kern             kern_acct.c 
  Log:
  SVN rev 181963 on 2008-08-21 15:02:17Z by ed
  
  Properly lock proctree_lock before locking the process while accounting.
  
  During the import of the MPSAFE TTY layer (r181905), I changed
  acct_process() to lock proctree_lock instead of SESS_LOCK, because
  s_ttyp is now locked using proctree_lock. One of the things I forgot,
  was to lock it before we PROC_LOCK.
  
  Commit this patch, written by kib@. To ensure we hold proctree_lock as
  short as possible, obtaining `ac_tty' has now been made the first step
  of filling `acct'.
  
  Reported by:    Kevin <kevinxlinuz 163 com>
  Solved by:      kib
  
  Revision  Changes    Path
  1.100     +15 -14    src/sys/kern/kern_acct.c



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