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