cvs commit: src/sys/kern kern_acct.c
ed at FreeBSD.org
Thu Aug 21 15:02:26 UTC 2008
ed 2008-08-21 15:02:17 UTC
FreeBSD src repository
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 at . 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
More information about the cvs-all